SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 116 Python

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>
G
Gregory P. Smith committed
fac99b8b0df209ca6546545193b1873672d536ca
Parent: 7f5e3f0
Committed by GitHub <noreply@github.com> on 2/22/2024, 3:27:16 AM