-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
RecursionError when assigning and referencing certain class instance attributes #2740
Comments
Thanks for reporting the issue @jpetrucciani I can reproduce it |
brycepg
added a commit
to brycepg/astroid
that referenced
this issue
Mar 30, 2019
The dropped context was causing InferenceErrors in self referential assignment Example: self.a = len(self.a) There is a bigger problem of inference not understanding control flow that this fix does not solve. Close pylint-dev/pylint#2736 Close pylint-dev/pylint#2734 Close pylint-dev/pylint#2740
brycepg
added a commit
to brycepg/astroid
that referenced
this issue
Mar 30, 2019
The dropped context was causing RecursionErrors in self referential assignment Example: self.a = len(self.a) There is a bigger problem of inference not understanding control flow that this fix does not solve. Close pylint-dev/pylint#2736 Close pylint-dev/pylint#2734 Close pylint-dev/pylint#2740
2 tasks
brycepg
added a commit
to brycepg/astroid
that referenced
this issue
Mar 30, 2019
The dropped context was causing RecursionErrors in self referential assignment Example: self.a = len(self.a) There is a bigger problem of inference not understanding control flow that this fix does not solve. Close pylint-dev/pylint#2736 Close pylint-dev/pylint#2734 Close pylint-dev/pylint#2740
PCManticore
pushed a commit
to pylint-dev/astroid
that referenced
this issue
Apr 1, 2019
The dropped context was causing RecursionErrors in self referential assignment Example: self.a = len(self.a) There is a bigger problem of inference not understanding control flow that this fix does not solve. Close pylint-dev/pylint#2736 Close pylint-dev/pylint#2734 Close pylint-dev/pylint#2740
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
list
len()
of the list attributeHere's a snippet of code that triggers this issue:
Current behavior
RecursionError: maximum recursion depth exceeded
with default recursion limit.Increasing the recursion limit in the
.pylintrc
file like so:causes a segfault
Full stack trace:
Expected behavior
Correct pylint analysis with no recursion errors or segfaults
pylint --version output
tried it on the following versions:
The text was updated successfully, but these errors were encountered: