Skip to content

Commit e73b60f

Browse files
committed
gh-143834: Fix PyLong_AsNativeBytes docs for negative number padding
1 parent 64508fc commit e73b60f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/long.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
453453
454454
Otherwise, returns the number of bytes required to store the value.
455455
If this is equal to or less than *n_bytes*, the entire value was copied.
456-
All *n_bytes* of the buffer are written: remaining bytes filled by copies of the sign bit.
456+
All *n_bytes* of the buffer are written: remaining bytes filled by
457+
copies of the sign bit.
457458
458459
If the returned value is greater than *n_bytes*, the value was
459460
truncated: as many of the lowest bits of the value as could fit are written,

0 commit comments

Comments
 (0)