8000 Address Steve's review · python/cpython@b08cd55 · GitHub
[go: up one dir, main page]

Skip to content

Commit b08cd55

Browse files
committed
Address Steve's review
1 parent 577598a commit b08cd55

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/c-api/long.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,13 @@ Export API
672672
673673
.. c:member:: uint8_t bits_per_digit
674674
675-
Bits per digit.
675+
Bits per digit. For example, a 15 bit digit means that bits 0-14 contain
676+
meaningful information.
676677
677678
.. c:member:: uint8_t digit_size
678679
679-
Digit size in bytes.
680+
Digit size in bytes. For example, a 15 bit digit will require at least 2
681+
bytes.
680682
681683
.. c:member:: int8_t digits_order
682684
@@ -780,6 +782,8 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
780782
*ndigits* is the number of digits in the *digits* array. It must be
781783
greater than 0.
782784
785+
*digits* must not be NULL.
786+
783787
The caller can either initialize the array of digits *digits* and then
784788
either call :c:func:`PyLongWriter_Finish` to get a Python :class:`int` or
785789
:c:func:`PyLongWriter_Discard` to destroy the writer instance. Digits must

0 commit comments

Comments
 (0)
0