Skip to content
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

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

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

miss-islington commented Jan 10, 2021

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

@miss-islington
Copy link
Contributor Author

miss-islington commented Jan 10, 2021

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

@miss-islington miss-islington merged commit 799f848 into python:3.9 Jan 10, 2021
4 checks passed
@miss-islington miss-islington deleted the backport-81f87bb-3.9 branch Jan 10, 2021
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.

None yet

4 participants