/third_party/python/Include/ |
D | boolobject.h | 22 #define Py_False ((PyObject *) &_Py_FalseStruct) macro 31 #define Py_IsFalse(x) Py_Is((x), Py_False) 35 #define Py_RETURN_FALSE return Py_NewRef(Py_False)
|
/third_party/python/Doc/c-api/ |
D | bool.rst | 9 two booleans, :const:`Py_False` and :const:`Py_True`. As such, the normal 20 .. c:var:: PyObject* Py_False 34 Return :const:`Py_False` from a function, properly incrementing its reference 46 Return a new reference to :const:`Py_True` or :const:`Py_False` depending on the
|
/third_party/python/Objects/ |
D | boolobject.c | 35 result = Py_False; in PyBool_FromLong() 45 PyObject *x = Py_False; in bool_new()
|
D | classobject.c | 267 res = eq ? Py_True : Py_False; in method_richcompare() 269 res = eq ? Py_False : Py_True; in method_richcompare() 498 res = eq ? Py_True : Py_False; in instancemethod_richcompare() 500 res = eq ? Py_False : Py_True; in instancemethod_richcompare()
|
D | methodobject.c | 317 res = eq ? Py_True : Py_False; in meth_richcompare() 319 res = eq ? Py_False : Py_True; in meth_richcompare()
|
D | object.c | 708 res = (v == w) ? Py_True : Py_False; in do_richcompare() 711 res = (v != w) ? Py_True : Py_False; in do_richcompare() 1440 if (v == Py_False) in PyObject_IsTrue() 2339 return Py_Is(x, Py_False); in Py_IsFalse()
|
D | codeobject.c | 831 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_False); in _PyCode_ConstantKey() 973 res = Py_False; in code_richcompare() 982 res = Py_False; in code_richcompare()
|
D | fileobject.c | 44 newline, closefd ? Py_True : Py_False); in PyFile_FromFd()
|
D | sliceobject.c | 591 res = Py_False; in slice_richcompare()
|
D | odictobject.c | 1540 if (op == Py_EQ && cmp == Py_False) in odict_richcompare() 1551 res = (eq == (op == Py_EQ)) ? Py_True : Py_False; in odict_richcompare()
|
/third_party/python/Modules/ |
D | _abc.c | 616 result = Py_False; in _abc__abc_instancecheck_impl() 717 result = Py_False; in _abc__abc_subclasscheck_impl() 736 if (ok == Py_False) { in _abc__abc_subclasscheck_impl() 741 result = Py_False; in _abc__abc_subclasscheck_impl() 803 result = Py_False; in _abc__abc_subclasscheck_impl()
|
D | _opcode.c | 54 else if (jump == Py_False) { in _opcode_stack_effect_impl()
|
D | arraymodule.c | 704 res = Py_False; in array_richcompare() 730 PyObject *res = cmp ? Py_True : Py_False; in array_richcompare() 775 res = Py_False; in array_richcompare() 782 Py_INCREF(Py_False); in array_richcompare() 783 res = Py_False; in array_richcompare()
|
D | _testbuffer.c | 2561 ret = equal ? Py_True : Py_False; in cmp_contig() 2587 ret = PyBuffer_IsContiguous(base, ord) ? Py_True : Py_False; in is_contiguous() 2596 ret = PyBuffer_IsContiguous(&view, ord) ? Py_True : Py_False; in is_contiguous() 2725 PyObject *legacy_mode = Py_False; in staticarray_init() 2730 a->legacy_mode = (legacy_mode != Py_False); in staticarray_init()
|
D | main.c | 283 runargs = PyTuple_Pack(2, module, set_argv0 ? Py_True : Py_False); in pymain_run_module()
|
D | _json.c | 1329 else if (obj == Py_False) { in _encoded_const() 1406 if (obj == Py_None || obj == Py_True || obj == Py_False) { in encoder_listencode_obj() 1575 else if (key == Py_True || key == Py_False || key == Py_None) { in encoder_listencode_dict()
|
D | unicodedata.c | 912 result = (match == 0) ? Py_True : Py_False; in unicodedata_UCD_is_normalized_impl() 915 result = (m == YES) ? Py_True : Py_False; in unicodedata_UCD_is_normalized_impl()
|
D | _operator.c | 708 result = (a == b) ? Py_True : Py_False; in _operator_is__impl() 724 result = (a != b) ? Py_True : Py_False; in _operator_is_not_impl()
|
/third_party/python/Modules/_io/ |
D | _iomodule.c | 388 closefd ? Py_True : Py_False, in _io_open_impl() 484 line_buffering ? Py_True : Py_False); in _io_open_impl()
|
D | textio.c | 323 _PyIO_str_decode, input, final ? Py_True : Py_False, NULL); in _PyIncrementalNewlineDecoder_decode() 888 self->decoder, self->readtranslate ? Py_True : Py_False, NULL); in _textiowrapper_set_decoder() 907 eof ? Py_True : Py_False, NULL); in _textiowrapper_decode() 2609 input_chunk, cookie.need_eof ? Py_True : Py_False, NULL); in _io_TextIOWrapper_seek_impl()
|
/third_party/python/Modules/_sqlite/ |
D | module.c | 118 return Py_NewRef(Py_False); in pysqlite_complete_statement_impl()
|
/third_party/python/Python/ |
D | marshal.c | 360 else if (v == Py_False) { in w_object() 986 Py_INCREF(Py_False); in r_object() 987 retval = Py_False; in r_object()
|
D | pylifecycle.c | 2173 Py_None, Py_False); /* newline, closefd */ in create_stdio() 2207 write_through = Py_False; in create_stdio() 2211 line_buffering = Py_False; in create_stdio()
|
D | ceval.c | 1970 Py_INCREF(Py_False); in _PyEval_EvalFrameDefault() 1971 SET_TOP(Py_False); in _PyEval_EvalFrameDefault() 3619 PyObject *b = res ? Py_True : Py_False; in _PyEval_EvalFrameDefault() 3638 PyObject *b = (res^oparg) ? Py_True : Py_False; in _PyEval_EvalFrameDefault() 3893 PyObject *res = match ? Py_True : Py_False; in _PyEval_EvalFrameDefault() 3902 PyObject *res = match ? Py_True : Py_False; in _PyEval_EvalFrameDefault() 3919 Py_INCREF(Py_False); in _PyEval_EvalFrameDefault() 3920 PUSH(Py_False); in _PyEval_EvalFrameDefault()
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 123 Py_INCREF(Py_False); in incr_false() 124 return Py_False; in incr_false() 407 PyObject *b = flags&cm->flag ? Py_True : Py_False; in flags_as_dict() 636 res = (SdFlags(v)==SdFlags(w)) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare() 650 res = (SdFlags(v)==flags) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare() 5863 Py_INCREF(Py_False); in PyInit__decimal() 5864 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_False)); in PyInit__decimal()
|