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

gh-129813, PEP 782: Use PyBytesWriter in _sha3 by vstinner · Pull Request #138923 · python/cpython · GitHub

Repository navigation

gh-129813, PEP 782: Use PyBytesWriter in _sha3 - #138923

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:pybyteswriter_sha3
Sep 15, 2025
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:pybyteswriter_sha3

Conversation

vstinner commented Sep 15, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Replace PyBytes_FromStringAndSize(NULL, size) with the new public PyBytesWriter API.

Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.

Copy link
Copy Markdown
Member Author

cc @picnixz

picnixz commented Sep 15, 2025

Copy link
Copy Markdown
Member

Note that I kept compact code toook similar to hexdigest(). So I would prefer keeping the same blank lines.

Copy link
Copy Markdown
Member Author

Note that I kept compact code toook similar to hexdigest(). So I would prefer keeping the same blank lines.

I changed _sha3_shake_128_hexdigest_impl() to use the same blank lines. Do you like it? Or do you prefer that I revert blank lines to the current code?

vstinner merged commit f62b495 into python:main Sep 15, 2025
43 checks passed
vstinner deleted the pybyteswriter_sha3 branch September 15, 2025 20:53

Copy link
Copy Markdown
Member Author

Merged, thanks for the review @picnixz.

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.

2 participants


Back | FazBrowse Home | New Git URL