8000 doc: add link to int.bit_length() method · python/cpython@b08d260 · GitHub
[go: up one dir, main page]

Skip to content

Commit b08d260

Browse files
committed
doc: add link to int.bit_length() method
1 parent afc665e commit b08d260

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/c-api/long.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,9 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
516516
* Set an :exc:`OverflowError` exception, and return ``-1`` if the number
517517
of bits doesn't fit into :c:type:`Py_ssize_t`.
518518
519-
Calling the :py:meth:`bit_length` method should be preferred to support integers
520-
larger than :c:type:`Py_ssize_t` bits and to avoid :exc:`!OverflowError`.
519+
Calling the :py:meth:`int.bit_length` method should be preferred to support
520+
integers larger than :c:type:`Py_ssize_t` bits and to avoid
521+
:exc:`!OverflowError`.
521522
522523
.. versionadded:: 3.14
523524

0 commit comments

Comments
 (0)
0