]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Jan 2021 07:30:43 +0000 (23:30 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 07:30:43 +0000 (23:30 -0800)
commit799f8489d418b7f9207d333eac38214931bd7dcc
treeb665d91766509be337f4deba74a16f91a778cbd4
parent9ab4dd452287169f08a8cf4d4c68c2139f8de714
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.
(cherry picked from commit 81f87bbf9f65702062021a78abd9b8f82c98a414)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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]