Uh oh!
There was an error while loading. Please reload this page.
gh-142518: add thread safety docs on bytes C-API - #146415
Conversation
vstinner
left a comment
There was a problem hiding this comment.
the buffer should not be mutated
Would it better to use must instead? "the buffer must not be mutated".
Or are there some legit use cases to mutate a buffer during a PyBytes function call?
See: https://datatracker.ietf.org/doc/html/rfc2119 for MUST vs SHOULD in RFC.
kumaraditya303
commented
Mar 26, 2026
Yes, I agree, changed it to "must" instead. |
Uh oh!
There was an error while loading. Please reload this page.
@vstinner I updated the comment to avoid confusion, PTAL at the latest change. |
Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
(cherry picked from commit 6a94980) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
GH-146515 is a backport of this pull request to the 3.14 branch. |
📚 Documentation preview 📚: https://cpython-previews--146415.org.readthedocs.build/