diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-01-10 07:30:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 07:30:59 (GMT) |
commit | 5ded7efa6a7a232dd4a41e6e65e4dae47146514b (patch) | |
tree | 119d9e200c3f801507db83dbaec65a9429c3f66f /Misc/NEWS.d/next/IDLE | |
parent | ca8e96d1edbeb536f58da91e607082463398fce1 (diff) | |
download | cpython-5ded7efa6a7a232dd4a41e6e65e4dae47146514b.zip cpython-5ded7efa6a7a232dd4a41e6e65e4dae47146514b.tar.gz cpython-5ded7efa6a7a232dd4a41e6e65e4dae47146514b.tar.bz2 |
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>
Diffstat (limited to 'Misc/NEWS.d/next/IDLE')
-rw-r--r-- | Misc/NEWS.d/next/IDLE/2021-01-10-01-25-43.bpo-33065.zmyHYJ.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/IDLE/2021-01-10-01-25-43.bpo-33065.zmyHYJ.rst b/Misc/NEWS.d/next/IDLE/2021-01-10-01-25-43.bpo-33065.zmyHYJ.rst new file mode 100644 index 0000000..87948f3 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2021-01-10-01-25-43.bpo-33065.zmyHYJ.rst @@ -0,0 +1 @@ +Fix problem debugging user classes with __repr__ method. |