Home
last modified time | relevance | path

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

123

/third_party/python/Include/
Dboolobject.h22 #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/
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.c317 res = eq ? Py_True : Py_False; in meth_richcompare()
319 res = eq ? Py_False : Py_True; in meth_richcompare()
Dobject.c708 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()
Dcodeobject.c831 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()
Dfileobject.c44 newline, closefd ? Py_True : Py_False); in PyFile_FromFd()
Dsliceobject.c591 res = Py_False; in slice_richcompare()
Dodictobject.c1540 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.c616 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.c54 else if (jump == Py_False) { in _opcode_stack_effect_impl()
Darraymodule.c704 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.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()
Dmain.c283 runargs = PyTuple_Pack(2, module, set_argv0 ? Py_True : Py_False); in pymain_run_module()
D_json.c1329 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()
Dunicodedata.c912 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.c708 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.c388 closefd ? Py_True : Py_False, in _io_open_impl()
484 line_buffering ? Py_True : Py_False); in _io_open_impl()
Dtextio.c323 _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/
Dmodule.c118 return Py_NewRef(Py_False); in pysqlite_complete_statement_impl()
/third_party/python/Python/
Dmarshal.c360 else if (v == Py_False) { in w_object()
986 Py_INCREF(Py_False); in r_object()
987 retval = Py_False; in r_object()
Dpylifecycle.c2173 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()
Dceval.c1970 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.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()
5863 Py_INCREF(Py_False); in PyInit__decimal()
5864 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_False)); in PyInit__decimal()

123