Skip to content

Squash one-use inference utility functions to reduce recursion errors #804

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

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

brycepg
Copy link
Contributor

@brycepg brycepg commented Jun 18, 2020

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

Squash single-use inference utility functions to reduce recursion errors by squashing generators together. This change stops recursion errors from occuring for some complex code.

This also makes debugging a lot simpler by reducing the complexity of the function stack.

I've been unable to create a regression test due to the nature of this issue however I have manually tested that this change fixes the below mentioned issues.

Type of Changes

Type
🐛 Bug fix

Related Issue

Fixes pylint-dev/pylint#2843
Fixes pylint-dev/pylint#2811
Changes pylint-dev/pylint#3602 error into a MemoryError for me (which makes the underlying issue more apparent I suppose)

@brycepg brycepg changed the title Squash one-use inference utility functions to help reduce recursion e… Squash one-use inference utility functions to reduce recursion errors Jun 18, 2020
@brycepg brycepg force-pushed the issue/squash-stack-use branch 3 times, most recently from b745c31 to 0655d0a Compare June 19, 2020 03:41
@brycepg brycepg marked this pull request as ready for review June 19, 2020 03:46
…rrors

This also makes debugging a lot simpler reducing the complexity of the
function stack.
@brycepg brycepg force-pushed the issue/squash-stack-use branch from 0655d0a to b39deef Compare June 19, 2020 04:01
@PCManticore PCManticore merged commit 4b7566b into pylint-dev:master Jun 22, 2020
@PCManticore
Copy link
Contributor

Nice!

brycepg added a commit to brycepg/astroid that referenced this pull request Jun 24, 2020
…rrors (pylint-dev#804)

This also makes debugging a lot simpler reducing the complexity of the
function stack.
brycepg added a commit to brycepg/astroid that referenced this pull request Jun 24, 2020
…rrors (pylint-dev#804)

This also makes debugging a lot simpler reducing the complexity of the
function stack.
brycepg added a commit that referenced this pull request Jun 24, 2020
…rrors (#804)

This also makes debugging a lot simpler reducing the complexity of the
function stack.
@yuvadm
Copy link

yuvadm commented Oct 15, 2020

When can a release that incorporates this fix be expected?

@rgeronimi
Copy link

Releasing this in pypi is critical for pylint to work "out of the box" in several python projects

@jonlundy
Copy link

Has this been released to PyPI? I can only see the release form June 8th.

@yuvadm
Copy link

yuvadm commented Jan 11, 2021

@jonlundy It hasn't, to the best of my knowledge. I still install this from master as a workaround, which is a bit unfortunate.

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

Successfully merging this pull request may close these issues.

RecursionError when checking module using with pandas.merge RecursionError when linting scripts containing merge_asof from pandas 0.24
5 participants