Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understand Side Effects on Classes/Instances #1056

Closed
davidhalter opened this issue Mar 4, 2018 · 1 comment
Closed

Understand Side Effects on Classes/Instances #1056

davidhalter opened this issue Mar 4, 2018 · 1 comment
Labels
database-index Needs a database index/Rewrite in Rust (#1059) feature

Comments

@davidhalter
Copy link
Owner

Quite a few cases where jedi struggles to understand code are related to people modifying classes from the outside.

A typical example would be:

class A():
    def __init__(self):
        self.x = None

a= A()
a.x = 3
# At this point if you complete a.x, jedi still thinks x is None.

Obviously there are much more complicated examples as well.

@davidhalter davidhalter added the database-index Needs a database index/Rewrite in Rust (#1059) label Dec 14, 2019
@davidhalter
Copy link
Owner Author

For performance reasons this will definitely not happen in Jedi. Might happen if I ever rewrite it in Rust. You can also follow #1059, there I will update if something happens in that direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database-index Needs a database index/Rewrite in Rust (#1059) feature
Projects
None yet
Development

No branches or pull requests

1 participant