Searched refs:nb_bool (Results 1 – 8 of 8) sorted by relevance
/third_party/python/Objects/ |
D | typeslots.inc | 10 {offsetof(PyNumberMethods, nb_bool), offsetof(PyTypeObject, tp_as_number)},
|
D | object.c | 1445 Py_TYPE(v)->tp_as_number->nb_bool != NULL) in PyObject_IsTrue() 1446 res = (*Py_TYPE(v)->tp_as_number->nb_bool)(v); in PyObject_IsTrue() 1726 .nb_bool = notimplemented_bool,
|
D | rangeobject.c | 687 .nb_bool = (inquiry)range_bool,
|
D | typeobject.c | 5794 COPYNUM(nb_bool); in inherit_slots() 7995 UNSLOT("__bool__", nb_bool, slot_nb_bool, wrap_inquirypred,
|
/third_party/python/Include/cpython/ |
D | object.h | 118 inquiry nb_bool; member
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 240 …| :c:member:`~PyNumberMethods.nb_bool` | :c:type:`inquiry` | __… 2104 inquiry nb_bool; 2161 .. c:member:: inquiry PyNumberMethods.nb_bool
|
/third_party/python/Doc/whatsnew/ |
D | 3.0.rst | 876 ``nb_nonzero`` is now ``nb_bool``.
|
/third_party/python/Misc/ |
D | HISTORY | 17269 - Renamed nb_nonzero to nb_bool and __nonzero__ to __bool__.
|