mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Remove more cruft leftover from nb_coerce. Rename nb_coerce to
nb_reserved.
This commit is contained in:
parent
8ce81f767a
commit
16c7075164
15 changed files with 20 additions and 66 deletions
|
|
@ -330,7 +330,7 @@ functionality. The fields of the type object are examined in detail in this
|
|||
section. The fields will be described in the order in which they occur in the
|
||||
structure.
|
||||
|
||||
Typedefs: unaryfunc, binaryfunc, ternaryfunc, inquiry, coercion, intargfunc,
|
||||
Typedefs: unaryfunc, binaryfunc, ternaryfunc, inquiry, intargfunc,
|
||||
intintargfunc, intobjargproc, intintobjargproc, objobjargproc, destructor,
|
||||
freefunc, printfunc, getattrfunc, getattrofunc, setattrfunc, setattrofunc,
|
||||
cmpfunc, reprfunc, hashfunc
|
||||
|
|
@ -751,19 +751,6 @@ type objects) *must* have the :attr:`ob_size` field.
|
|||
:attr:`sq_inplace_repeat`.
|
||||
|
||||
|
||||
.. data:: Py_TPFLAGS_CHECKTYPES
|
||||
|
||||
If this bit is set, the binary and ternary operations in the
|
||||
:ctype:`PyNumberMethods` structure referenced by :attr:`tp_as_number` accept
|
||||
arguments of arbitrary object types, and do their own type conversions if
|
||||
needed. If this bit is clear, those operations require that all arguments have
|
||||
the current type as their type, and the caller is supposed to perform a coercion
|
||||
operation first. This applies to :attr:`nb_add`, :attr:`nb_subtract`,
|
||||
:attr:`nb_multiply`, :attr:`nb_divide`, :attr:`nb_remainder`, :attr:`nb_divmod`,
|
||||
:attr:`nb_power`, :attr:`nb_lshift`, :attr:`nb_rshift`, :attr:`nb_and`,
|
||||
:attr:`nb_xor`, and :attr:`nb_or`.
|
||||
|
||||
|
||||
.. data:: Py_TPFLAGS_HAVE_RICHCOMPARE
|
||||
|
||||
If this bit is set, the type object has the :attr:`tp_richcompare` field, as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue