Documentation
I am looking at the PyLong_AsNativeBytes section of https://docs.python.org/3/c-api/long.html .
Currently, it says:
All n_bytes of the buffer are written: large buffers are padded with zeroes.
I would expect that in the event that a large buffer is being filled with a negative number it will be padded with 0xFF. I've glanced at the source code and this is indeed the case.
Could the documentation please be amended?
Linked PRs
Documentation
I am looking at the
PyLong_AsNativeBytessection of https://docs.python.org/3/c-api/long.html .Currently, it says:
I would expect that in the event that a large buffer is being filled with a negative number it will be padded with
0xFF. I've glanced at the source code and this is indeed the case.Could the documentation please be amended?
Linked PRs