FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-134531: prefer using `_hashlib` module state instead of module object by picnixz · Pull Request #136865 · python/cpython · GitHub

Repository navigation

gh-134531: prefer using _hashlib module state instead of module object - #136865

Merged
picnixz merged 7 commits into
python:mainfrom
picnixz:feat/hashlib/use-modstate-134531
Jul 20, 2025
Merged

picnixz merged 7 commits into
python:mainfrom
picnixz:feat/hashlib/use-modstate-134531

Conversation

picnixz commented Jul 20, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

In order to work on gh-134531, I actually observed that I'm always using the state object itself. By changing the signatures of EVP_MD getters & co, I can simplify the code a bit.

nachocab and others added 5 commits July 20, 2025 14:40
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Add an example on how to write a tarfile to stdout; general improvements.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…ests (python#136762)

- Fix `hashlib_helper.block_algorithm` where the dummy functions were incorrectly defined.
- Rename `hashlib_helper.HashAPI` to `hashlib_helper.HashInfo` and add more helper methods.
- Simplify `hashlib_helper.requires_*()` functions.
- Rewrite some private helpers in `hashlib_helper`.
- Remove `find_{builtin,openssl}_hashdigest_constructor()` as they are no more needed and were
  not meant to be public in the first place.
- Fix some tests in `test_hashlib` when FIPS mode is on.

picnixz commented Jul 20, 2025

Copy link
Copy Markdown
Member Author

Sorry for the ping

picnixz marked this pull request as ready for review July 20, 2025 12:46
picnixz enabled auto-merge (squash) July 20, 2025 12:51
picnixz merged commit 4a151ca into python:main Jul 20, 2025
picnixz deleted the feat/hashlib/use-modstate-134531 branch July 20, 2025 13:27
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…le object (python#136865)

Some internal helper functions taking the module object to retrieve its state
under some conditions now directly take the module's state instead as those
conditions hold most of the time.
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…le object (python#136865)

Some internal helper functions taking the module object to retrieve its state
under some conditions now directly take the module's state instead as those
conditions hold most of the time.
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL