Skip to content

Pylint crash with maximum recursion depth exceeded #2667

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

Closed
jermainewang opened this issue Dec 29, 2018 · 1 comment · Fixed by pythoninja/adarklib#29, thermondo/stanley#208 or ChrisRBe/PP-P2P-Parser#85
Labels
Bug 🪲 Crash 💥 A bug that makes pylint crash

Comments

@jermainewang
Copy link

jermainewang commented Dec 29, 2018

Steps to reproduce

  1. Save following codes as f.py:
class MyClass:
    def __init__(self):
        self._slice = slice(0, 10)

    def incr(self):
        self._slice = slice(0, self._slice.stop + 1)
  1. Run python -m pylint f.py
  2. Changing slice to any other identifiers solves the problem (e.g. change slice to foo).

Might related to #2628 #2627

Current behavior

RecursionError: maximum recursion depth exceeded

Expected behavior

No error.

pylint --version output

pylint 2.2.2
astroid 2.1.0
Python 3.7.1 (default, Oct 22 2018, 10:41:28)
[GCC 8.2.1 20180831]

@PCManticore PCManticore added Bug 🪲 Crash 💥 A bug that makes pylint crash labels Dec 30, 2018
@PCManticore
Copy link
Contributor

Thanks @jermainewang I can confirm the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment