summaryrefslogtreecommitdiffstats
path: root/Python/ceval_gil.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2024-02-22 03:27:16 (GMT)
committerGitHub <noreply@github.com>2024-02-22 03:27:16 (GMT)
commitfac99b8b0df209ca6546545193b1873672d536ca (patch)
tree8f5861020e44f45a8cdf5c5af004750c4aa57d96 /Python/ceval_gil.c
parent7f5e3f04f838686d65f1053a5e47f5d3faf0b228 (diff)
downloadcpython-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/ceval_gil.c')
0 files changed, 0 insertions, 0 deletions