-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins #113577
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
serhiy-storchaka
merged 17 commits into
python:main
from
georgepittock:fix-issue-gh-113570
Oct 17, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
dce1f02
Fixed a bug in `reprlib.repr` where it incorrectly called the repr me…
georgepittock 5a4691b
📜🤖 Added by blurb_it.
blurb-it[bot] 04ed3cd
use double backticks in news entry
georgepittock 7a69467
fix so that subclasses that define repr_{type} methods still work
georgepittock c7ae05b
fix variable name
georgepittock 8badac9
add back handling of type(x).__name__ containing spaces
georgepittock 0d7a3aa
Merge branch 'python:main' into fix-issue-gh-113570
georgepittock a8877f5
Merge remote-tracking branch 'origin/fix-issue-gh-113570' into fix-is…
georgepittock 660030e
refactor multiple hasattr, getattr calls into one
georgepittock 5b718e3
add a test case for that reprlib.repr on a user defined class shadowi…
georgepittock c800488
Merge branch 'main' into fix-issue-gh-113570
georgepittock 5df4a7b
Merge branch 'main' into fix-issue-gh-113570
georgepittock 24ac638
Address review comments to remove unrelated style changes
georgepittock 59af49a
remove redundancy of lookup dictionary plus a few style changes as pe…
georgepittock 0bcf8db
remove trailing whitespace
georgepittock 70ba74c
Change .get to __getitem__ as we already know typename is in the dict
georgepittock c25a0d9
Merge branch 'main' into fix-issue-gh-113570
georgepittock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core and Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed a bug in ``reprlib.repr`` where it incorrectly called the repr method on shadowed Python built-in types. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.