-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
gh-121306: allow a mapping as __dict__ of object #121389
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
Open
blhsing
wants to merge
50
commits into
python:main
Choose a base branch
from
blhsing:allow-mapping-as-globals
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+482
−275
Open
Changes from 9 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
970e3d9
allow a mapping, rather than just a dict subclass, as globals
blhsing cf9945e
fixed typo
blhsing 55f6dd4
regenerated header files
blhsing 0d347f8
fixed error handling of DELETE_GLOBAL
blhsing 4e1af59
fixed borrowed builtins reference
blhsing 40f7c35
fixed error handling
blhsing 698aa1f
use PyMapping_HasKeyStringWithError for proper error handling
blhsing fa1dcac
fixed usage of id __lltrace__
blhsing 4343867
made _PyEval_BuiltinsFromGlobals return a new, non-borrowed reference
blhsing c5b38b0
release reference to builtins module
blhsing 0daa66b
streamline code
blhsing 2852b8f
added dict-specific path for insertion of __builtins__ into globals
blhsing 5120260
try PyDict_* before PyMapping_*
blhsing 723d665
switch from EAFP to LBYL
blhsing 3908ee8
fixed typo
blhsing 4a14682
dict-specific path for function
blhsing ab2974e
more dict-specific paths
blhsing 1218ab7
minor adjustments
blhsing 375af2b
📜🤖 Added by blurb_it.
blurb-it[bot] 06b225b
removed redundant PyDict_Check; streamlined code
blhsing d584987
fixed check for null globals
blhsing 3d3a563
updated docs
blhsing 8bbc34c
minor update to docs
blhsing ca2ea12
updated tests
blhsing 0f9e289
Update 2024-07-05-16-24-14.gh-issue-121306.nUBgho.rst
blhsing 186ee55
Update 2024-07-05-16-24-14.gh-issue-121306.nUBgho.rst
blhsing 190c09f
fixed reference count
blhsing 09df171
Merge branch 'master' into allow-mapping-as-globals
blhsing 1949be7
updated test to validate evaluated result
blhsing bb888ff
updated style
blhsing db01f51
regen headers
blhsing f0cd4e8
removed comments that are no longer applicable
blhsing d7d7d04
allow a mapping to be object.__dict__ and by extension module.__dict_…
blhsing cab9a52
simplified macros for unified dict/mapping API
blhsing f8c62c6
corrected comments
blhsing aa2d9b4
regen headers
blhsing 362e0ac
fixed headers
blhsing bf7be59
simplified macro
blhsing 0bf8239
fixed reference count
blhsing 278c2ca
fixed typo in doc
blhsing d6735b9
fixed reference count
blhsing 18dad2b
fixed possible uninitialized usage
blhsing 35ada07
fixed logical operation
blhsing 2e6a88a
updated tests
blhsing c29a10c
added test for mapping __dict__ for module; DRYer code with better ma…
blhsing 3513a29
updated comment
blhsing 97b813d
updated comment
blhsing 6ea65b9
reformatted code; updated news
blhsing 8137cab
reformatted code for clarity
blhsing 725a327
fixed typo
blhsing 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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.