Skip to content

[3.9] bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)#24184

Merged
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-81f87bb-3.9
Jan 10, 2021
Merged

[3.9] bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)#24184
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-81f87bb-3.9

Conversation

@miss-islington

@miss-islington miss-islington commented Jan 10, 2021

Copy link
Copy Markdown
Contributor

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 81f87bb)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu

https://bugs.python.org/issue33065

…ythonGH-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 81f87bb)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@terryjreedy: Status check is done, and it's a success ✅ .

@miss-islington

Copy link
Copy Markdown
Contributor Author

@terryjreedy: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit 799f848 into python:3.9 Jan 10, 2021
@miss-islington
miss-islington deleted the backport-81f87bb-3.9 branch January 10, 2021 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants