diff options
author | Gregory P. Smith <greg@krypto.org> | 2024-02-22 03:27:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 03:27:16 (GMT) |
commit | fac99b8b0df209ca6546545193b1873672d536ca (patch) | |
tree | 8f5861020e44f45a8cdf5c5af004750c4aa57d96 /Python/_warnings.c | |
parent | 7f5e3f04f838686d65f1053a5e47f5d3faf0b228 (diff) | |
download | cpython-fac99b8b0df209ca6546545193b1873672d536ca.zip cpython-fac99b8b0df209ca6546545193b1873672d536ca.tar.gz cpython-fac99b8b0df209ca6546545193b1873672d536ca.tar.bz2 |
gh-111140: Improve PyLong_AsNativeBytes API doc example & improve the test (#115380)
This expands the examples to cover both realistic use cases for the API.
I noticed thing in the test that could be done better so I added those as well: We need to guarantee that all bytes of the result are overwritten and that too many are not written. Tests now pre-fills the result with data in order to ensure that.
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Diffstat (limited to 'Python/_warnings.c')
0 files changed, 0 insertions, 0 deletions