Home
last modified time | relevance | path

Searched refs:Py_False (Results 1 – 25 of 53) sorted by relevance

123

/third_party/python/Include/
Dboolobject.h21 #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/
Dbool.rst9 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/
Dboolobject.c35 result = Py_False; in PyBool_FromLong()
45 PyObject *x = Py_False; in bool_new()
Dclassobject.c267 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()
Dmethodobject.c313 res = eq ? Py_True : Py_False; in meth_richcompare()
315 res = eq ? Py_False : Py_True; in meth_richcompare()
Dcodeobject.c746 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()
Dfileobject.c44 newline, closefd ? Py_True : Py_False); in PyFile_FromFd()
Dobject.c688 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()
Dsliceobject.c582 res = Py_False; in slice_richcompare()
/third_party/python/Modules/
D_abc.c550 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.c53 else if (jump == Py_False) { in _opcode_stack_effect_impl()
Darraymodule.c688 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()
Dparsermodule.c516 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.c2561 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()
Dunicodedata.c906 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()
Dmain.c281 runargs = PyTuple_Pack(2, module, set_argv0 ? Py_True : Py_False); in pymain_run_module()
D_json.c1326 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.c695 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.c386 closefd ? Py_True : Py_False, in _io_open_impl()
482 line_buffering ? Py_True : Py_False); in _io_open_impl()
Dtextio.c322 _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/
Dmodule.c121 result = Py_False; in module_complete()
/third_party/python/Python/
Dpylifecycle.c1808 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()
Dmarshal.c360 else if (v == Py_False) { in w_object()
982 Py_INCREF(Py_False); in r_object()
983 retval = Py_False; in r_object()
Dceval.c1586 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.c123 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()

123