Skip to content

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

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

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

miss-islington
Copy link
Contributor

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

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
Contributor Author

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

2 similar comments
@miss-islington
Copy link
Contributor Author

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

@miss-islington
Copy link
Contributor Author

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

@miss-islington miss-islington merged commit 5ded7ef into python:3.8 Jan 10, 2021
@miss-islington miss-islington deleted the backport-81f87bb-3.8 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