gh-122854: Add Py_HashBuffer() function#122855
Conversation
erlend-aasland
left a comment
There was a problem hiding this comment.
Did you intend to update Misc/stable_abi.toml also?
There was a problem hiding this comment.
Thank you! This looks good, but, wasn't the name supposed to be Py_HashBuffer?
Oh, you're right! I modified the PR to use Py_HashBuffer(). I also rebased the PR to fix a merge conflict. |
encukou
left a comment
There was a problem hiding this comment.
With Erlend's suggestions, this should be good to merge!
Fixed. Oh, I thought that I already addressed his review, but it was maybe on another similar PR. I also replaced hash_bytes() with hash_buffer() in tests. Nicely spotted @encukou. |
capi-workgroup/decisions#13 doesn't mention the stable ABI. Do you think that this API should be added to the stable ABI? |
|
@erlend-aasland: I enabled auto-merge. If you consider that the function should be added to the limited C API 3.14, I can prepare a follow-up PR. |
|
Merged, thanks for reviews. |
📚 Documentation preview 📚: https://cpython-previews--122855.org.readthedocs.build/