gh-136929: ensure that hashlib.<name> does not raise AttributeError#136933
Merged
picnixz merged 3 commits intopython:mainfrom Jul 25, 2025
Merged
gh-136929: ensure that hashlib.<name> does not raise AttributeError#136933picnixz merged 3 commits intopython:mainfrom
hashlib.<name> does not raise AttributeError#136933picnixz merged 3 commits intopython:mainfrom
Conversation
hashlib.<name> does not raise AttributeError`hashlib.<name> does not raise AttributeError
a32da4b to
49ac4af
Compare
taegyunkim
pushed a commit
to taegyunkim/cpython
that referenced
this pull request
Aug 4, 2025
…teError` (python#136933) Previously, if OpenSSL was not present and built-in cryptographic extension modules were disabled, requesting `hashlib.<name>` raised `AttributeError` and an ERROR log message with the exception traceback is emitted when importing `hashlib`. Now, the named constructor function will always be available but raises a `ValueError` at runtime indicating that the algorithm is not supported. The log message has also been reworded to be less verbose.
Agent-Hellboy
pushed a commit
to Agent-Hellboy/cpython
that referenced
this pull request
Aug 19, 2025
…teError` (python#136933) Previously, if OpenSSL was not present and built-in cryptographic extension modules were disabled, requesting `hashlib.<name>` raised `AttributeError` and an ERROR log message with the exception traceback is emitted when importing `hashlib`. Now, the named constructor function will always be available but raises a `ValueError` at runtime indicating that the algorithm is not supported. The log message has also been reworded to be less verbose.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
hashlib.<name>does not raiseAttributeError#136929📚 Documentation preview 📚: https://cpython-previews--136933.org.readthedocs.build/