mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-101100: Docs: Fix references to several numeric dunders (#106278)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
319de0b578
commit
a8ae73965b
6 changed files with 45 additions and 45 deletions
|
@ -266,11 +266,11 @@ Notes:
|
|||
|
||||
(2)
|
||||
When attempting to pack a non-integer using any of the integer conversion
|
||||
codes, if the non-integer has a :meth:`__index__` method then that method is
|
||||
codes, if the non-integer has a :meth:`~object.__index__` method then that method is
|
||||
called to convert the argument to an integer before packing.
|
||||
|
||||
.. versionchanged:: 3.2
|
||||
Added use of the :meth:`__index__` method for non-integers.
|
||||
Added use of the :meth:`~object.__index__` method for non-integers.
|
||||
|
||||
(3)
|
||||
The ``'n'`` and ``'N'`` conversion codes are only available for the native
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue