Uh oh!
There was an error while loading. Please reload this page.
gh-85283: Build md5 extension with limited C API - #110967
Merged
Merged
Conversation
vstinner
commented
Oct 17, 2023
MemberAuthor
For now, I prefer to not add such function to the public C API, since users may want many variants:
See Include/internal/pycore_strhex.h: there are 4 functions with different arguments. |
* Replace _Py_strhex() with few lines of code. * Replace _PyType_GetModuleState() with PyType_GetModuleState(). * Fix make check-c-globals
vstinner
enabled auto-merge (squash)
October 17, 2023 10:30
vstinner
commented
Oct 17, 2023
MemberAuthor
The vstinner@mona$ ./pythonPython3.13.0a1+ (heads/limited_md5-dirty:417055ae80, Oct172023, 12:28:44) [GCC13.2.120231011 (RedHat13.2.1-4)] onlinuxType"help", "copyright", "credits"or"license"formoreinformation.
>>>import_md5>>>h1=_md5.md5(b'Python')
>>>type(h1).__module__'_md5'>>>importhashlib>>>h2=hashlib.new('md5', b'Python')
>>>type(h2).__module__'_hashlib'>>>h1.digest() ==h2.digest()
Truehashlib uses the OpenSSL implementation of MD5. The |
aisk pushed a commit
to aisk/cpython
that referenced
this pull request
Feb 11, 2024
* Replace _Py_strhex() with few lines of code. * Replace _PyType_GetModuleState() with PyType_GetModuleState(). * Fix make check-c-globals.
Glyphack pushed a commit
to Glyphack/cpython
that referenced
this pull request
Sep 2, 2024
* Replace _Py_strhex() with few lines of code. * Replace _PyType_GetModuleState() with PyType_GetModuleState(). * Fix make check-c-globals.
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 freeto 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.
📚 Documentation preview 📚: https://cpython-previews--110967.org.readthedocs.build/