8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc665e commit b08d260Copy full SHA for b08d260
Doc/c-api/long.rst
@@ -516,8 +516,9 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
516
* Set an :exc:`OverflowError` exception, and return ``-1`` if the number
517
of bits doesn't fit into :c:type:`Py_ssize_t`.
518
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`.
+ Calling the :py:meth:`int.bit_length` method should be preferred to support
+ integers larger than :c:type:`Py_ssize_t` bits and to avoid
521
+ :exc:`!OverflowError`.
522
523
.. versionadded:: 3.14
524
0 commit comments