-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pylint RecursionError on array slicing examples #2734
Comments
Thanks for reporting the issue! |
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
Pylint crashes with RecursionError if called (without special arguments or pylintrc) on following examples:
Example A ('a' from global scope)
Step 1 - A.py:
Step 2 -
pylint A.py
Example B ('a' from class scope)
Step 1 - B.py:
Step 2 -
pylint B.py
Current behavior
Pylint crashes with both examples. Console output (for example A only):
Expected behavior
Should show linter warnings, but should not crash.
pylint --version output
The text was updated successfully, but these errors were encountered: