-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-124665: add _PyCodec_UnregisterError and _codecs._unregister_error
#124677
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
vstinner
merged 29 commits into
python:main
from
picnixz:capi/codecs-unregister-error-124665
Sep 29, 2024
Merged
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
24df416
Specify constants for native error policies.
picnixz a65c1b7
Add `PyCodec_UnregisterError` C API function
picnixz c1ff9e6
Expose `PyCodec_UnregisterError` as `codecs.unregister_error`
picnixz 5837019
Update stable ABI files.
picnixz 80d1ceb
update ignored.tsv
picnixz a134f23
add tests
picnixz 47971e9
add docs
picnixz c00ad8d
add What's New entry
picnixz cf3bc2f
blurb
picnixz 2108308
docs fix
picnixz 1036516
simplify logic
picnixz ae601fe
nit: error message standardization
picnixz 864c1ab
Make it a private utility for now.
picnixz 3d9ff15
Revert "docs fix"
picnixz dbf0d5b
Revert "blurb"
picnixz 5ba676c
Revert "add What's New entry"
picnixz 8a0a0a9
Revert "add docs"
picnixz 7915fa1
Revert "Update stable ABI files."
picnixz 8eaa147
simplify array logic
picnixz 7f41aec
update tests
picnixz 988b34d
fix tests
picnixz c6e1d98
Duplicate standard error policies to avoid indirection.
picnixz dd6d210
standardize names
picnixz b68e54e
PEP 7
picnixz 2c528fe
standardize names
picnixz c95cd65
revert renaming as well
picnixz 101eb76
use 'built-in' instead of 'standard' terminology
picnixz 903238a
use 'random.getrandbits' instead of 'os.urandom' to generate random IDs
picnixz a6c692d
address Victor's review
picnixz 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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below you use "custom". Maybe it's better name than "non-built-in". I don't know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reworded the docs. WDYT?