]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 10 Jan 2021 06:59:47 +0000 (01:59 -0500)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 06:59:47 +0000 (01:59 -0500)
commit81f87bbf9f65702062021a78abd9b8f82c98a414
tree5f0289ff5b48515f408ea94919ea9b9842acb588
parentd16f6176abdecbb7ab231dc78beccfaa095beff6
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)

If __repr__ uses instance attributes, as normal, and one steps
through the __init__ method, debugger may try to get repr before
the instance attributes exist.  reprlib.repr handles the error.
Lib/idlelib/NEWS.txt
Lib/idlelib/debugger_r.py
Lib/idlelib/idle_test/test_debugger_r.py
Misc/NEWS.d/next/IDLE/2021-01-10-01-25-43.bpo-33065.zmyHYJ.rst [new file with mode: 0644]