/third_party/python/Include/ |
D | boolobject.h | 21 #define Py_False ((PyObject *) &_Py_FalseStruct) macro 26 #define Py_RETURN_FALSE return Py_INCREF(Py_False), 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 | 313 res = eq ? Py_True : Py_False; in meth_richcompare() 315 res = eq ? Py_False : Py_True; in meth_richcompare()
|
D | codeobject.c | 746 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_False); in _PyCode_ConstantKey() 888 res = Py_False; in code_richcompare() 897 res = Py_False; in code_richcompare()
|
D | fileobject.c | 44 newline, closefd ? Py_True : Py_False); in PyFile_FromFd()
|
D | object.c | 688 res = (v == w) ? Py_True : Py_False; in do_richcompare() 691 res = (v != w) ? Py_True : Py_False; in do_richcompare() 1398 if (v == Py_False) in PyObject_IsTrue()
|
D | sliceobject.c | 582 res = Py_False; in slice_richcompare()
|
/third_party/python/Modules/ |
D | _abc.c | 550 result = Py_False; in _abc__abc_instancecheck_impl() 651 result = Py_False; in _abc__abc_subclasscheck_impl() 670 if (ok == Py_False) { in _abc__abc_subclasscheck_impl() 675 result = Py_False; in _abc__abc_subclasscheck_impl() 737 result = Py_False; in _abc__abc_subclasscheck_impl()
|
D | _opcode.c | 53 else if (jump == Py_False) { in _opcode_stack_effect_impl()
|
D | arraymodule.c | 688 res = Py_False; in array_richcompare() 714 PyObject *res = cmp ? Py_True : Py_False; in array_richcompare() 759 res = Py_False; in array_richcompare() 766 Py_INCREF(Py_False); in array_richcompare() 767 res = Py_False; in array_richcompare()
|
D | parsermodule.c | 516 res = (self->st_type == PyST_EXPR) ? Py_True : Py_False; in parser_isexpr() 539 res = (self->st_type == PyST_EXPR) ? Py_False : Py_True; in parser_issuite()
|
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 | unicodedata.c | 906 result = (match == 0) ? Py_True : Py_False; in unicodedata_UCD_is_normalized_impl() 909 result = (m == YES) ? Py_True : Py_False; in unicodedata_UCD_is_normalized_impl()
|
D | main.c | 281 runargs = PyTuple_Pack(2, module, set_argv0 ? Py_True : Py_False); in pymain_run_module()
|
D | _json.c | 1326 else if (obj == Py_False) { in _encoded_const() 1403 if (obj == Py_None || obj == Py_True || obj == Py_False) { in encoder_listencode_obj() 1573 else if (key == Py_True || key == Py_False || key == Py_None) { in encoder_listencode_dict()
|
D | _operator.c | 695 result = (a == b) ? Py_True : Py_False; in _operator_is__impl() 711 result = (a != b) ? Py_True : Py_False; in _operator_is_not_impl()
|
/third_party/python/Modules/_io/ |
D | _iomodule.c | 386 closefd ? Py_True : Py_False, in _io_open_impl() 482 line_buffering ? Py_True : Py_False); in _io_open_impl()
|
D | textio.c | 322 _PyIO_str_decode, input, final ? Py_True : Py_False, NULL); in _PyIncrementalNewlineDecoder_decode() 887 self->decoder, self->readtranslate ? Py_True : Py_False, NULL); in _textiowrapper_set_decoder() 906 eof ? Py_True : Py_False, NULL); in _textiowrapper_decode() 1161 locale_module, &PyId_getpreferredencoding, Py_False); in _io_TextIOWrapper___init___impl() 2597 input_chunk, cookie.need_eof ? Py_True : Py_False, NULL); in _io_TextIOWrapper_seek_impl()
|
/third_party/python/Modules/_sqlite/ |
D | module.c | 121 result = Py_False; in module_complete()
|
/third_party/python/Python/ |
D | pylifecycle.c | 1808 Py_None, Py_False); /* newline, closefd */ in create_stdio() 1842 write_through = Py_False; in create_stdio() 1846 line_buffering = Py_False; in create_stdio()
|
D | marshal.c | 360 else if (v == Py_False) { in w_object() 982 Py_INCREF(Py_False); in r_object() 983 retval = Py_False; in r_object()
|
D | ceval.c | 1586 Py_INCREF(Py_False); in _PyEval_EvalFrameDefault() 1587 SET_TOP(Py_False); in _PyEval_EvalFrameDefault() 3021 PyObject *b = res ? Py_True : Py_False; in _PyEval_EvalFrameDefault() 3040 PyObject *b = (res^oparg) ? Py_True : Py_False; in _PyEval_EvalFrameDefault() 3153 if (cond == Py_False) { in _PyEval_EvalFrameDefault() 3173 if (cond == Py_False) { in _PyEval_EvalFrameDefault() 3202 if (cond == Py_False) { in _PyEval_EvalFrameDefault() 3221 if (cond == 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() 5852 Py_INCREF(Py_False); in PyInit__decimal() 5853 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_False)); in PyInit__decimal()
|