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

Fix object_len infererence without context causing RecursionError #660

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

brycepg
Copy link
Contributor

@brycepg brycepg commented Mar 30, 2019

Steps

  • For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • Write a good description on what the PR does.

Description

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.

Type of Changes

Type
🐛 Bug fix

Related Issue

Close pylint-dev/pylint#2736
Close pylint-dev/pylint#2734
Close pylint-dev/pylint#2740

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
@brycepg brycepg force-pushed the bug/len-infer-fix branch from c92490d to 3b726f7 Compare March 30, 2019 15:22
@PCManticore PCManticore merged commit 3bdec73 into pylint-dev:master Apr 1, 2019
@PCManticore
Copy link
Contributor

Thanks @brycepg That's a great fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants