Home
last modified time | relevance | path

Searched refs:Py_False (Results 1 - 25 of 49) sorted by relevance

12

/third_party/python/Include/
H A Dboolobject.h14 /* Py_False and Py_True are the only two bools in existence.
22 #define Py_False ((PyObject *) &_Py_FalseStruct) macro
31 #define Py_IsFalse(x) Py_Is((x), Py_False)
33 /* Macros for returning Py_True or Py_False, respectively */
35 #define Py_RETURN_FALSE return Py_NewRef(Py_False)
/third_party/python/Modules/
H A Dgetpath.c125 r = _Py_isabs(path) ? Py_True : Py_False;
156 r = Py_False;
183 (attr & FILE_ATTRIBUTE_DIRECTORY) ? Py_True : Py_False;
186 r = (_Py_wstat(path, &st) == 0) && S_ISDIR(st.st_mode) ? Py_True : Py_False;
209 !(attr & FILE_ATTRIBUTE_DIRECTORY) ? Py_True : Py_False;
212 r = (_Py_wstat(path, &st) == 0) && S_ISREG(st.st_mode) ? Py_True : Py_False;
240 ? Py_True : Py_False;
246 ? Py_True : Py_False;
H A D_abc.c613 result = Py_False; in _abc__abc_instancecheck_impl()
714 result = Py_False; in _abc__abc_subclasscheck_impl()
733 if (ok == Py_False) { in _abc__abc_subclasscheck_impl()
738 result = Py_False; in _abc__abc_subclasscheck_impl()
800 result = Py_False; in _abc__abc_subclasscheck_impl()
H A D_testclinic.c193 PyObject *obj_a = a ? Py_True : Py_False; in bool_converter_impl()
194 PyObject *obj_b = b ? Py_True : Py_False; in bool_converter_impl()
195 PyObject *obj_c = c ? Py_True : Py_False; in bool_converter_impl()
1019 PyObject *obj_b = b ? Py_True : Py_False; in vararg_with_default_impl()
H A D_opcode.c55 else if (jump == Py_False) { in _opcode_stack_effect_impl()
H A 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()
H A Darraymodule.c708 res = Py_False; in array_richcompare()
734 PyObject *res = cmp ? Py_True : Py_False; in array_richcompare()
779 res = Py_False; in array_richcompare()
786 Py_INCREF(Py_False); in array_richcompare()
787 res = Py_False; in array_richcompare()
H A Dmain.c290 runargs = PyTuple_Pack(2, module, set_argv0 ? Py_True : Py_False); in pymain_run_module()
H A D_operator.c709 PyObject *result = Py_Is(a, b) ? Py_True : Py_False; in _operator_is__impl()
724 result = (a != b) ? Py_True : Py_False; in _operator_is_not_impl()
H A Dunicodedata.c914 result = (match == 0) ? Py_True : Py_False; in unicodedata_UCD_is_normalized_impl()
917 result = (m == YES) ? Py_True : Py_False; in unicodedata_UCD_is_normalized_impl()
H A D_json.c1331 else if (obj == Py_False) { in _encoded_const()
1408 if (obj == Py_None || obj == Py_True || obj == Py_False) { in encoder_listencode_obj()
1577 else if (key == Py_True || key == Py_False || key == Py_None) { in encoder_listencode_dict()
/third_party/python/Objects/
H A Dboolobject.c25 result = Py_False; in PyBool_FromLong()
30 /* We define bool_new to always return either Py_True or Py_False */
35 PyObject *x = Py_False; in bool_new()
H A Dclassobject.c267 res = eq ? Py_True : Py_False; in method_richcompare()
269 res = eq ? Py_False : Py_True; in method_richcompare()
472 res = eq ? Py_True : Py_False; in instancemethod_richcompare()
474 res = eq ? Py_False : Py_True; in instancemethod_richcompare()
H A Dmethodobject.c314 res = eq ? Py_True : Py_False; in meth_richcompare()
316 res = eq ? Py_False : Py_True; in meth_richcompare()
H A Dfileobject.c43 newline, closefd ? Py_True : Py_False); in PyFile_FromFd()
H A Dobject.c694 res = (v == w) ? Py_True : Py_False; in do_richcompare()
697 res = (v != w) ? Py_True : Py_False; in do_richcompare()
1502 if (v == Py_False) in PyObject_IsTrue()
2464 return Py_Is(x, Py_False); in Py_IsFalse()
H A Dsliceobject.c592 res = Py_False; in slice_richcompare()
H A Dodictobject.c1488 if (op == Py_EQ && cmp == Py_False) in odict_richcompare()
1499 res = (eq == (op == Py_EQ)) ? Py_True : Py_False; in odict_richcompare()
H A Dcodeobject.c1743 res = Py_False; in code_richcompare()
1752 res = Py_False; in code_richcompare()
2118 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_False); in _PyCode_ConstantKey()
/third_party/python/Modules/_io/
H A D_iomodule.c331 closefd ? Py_True : Py_False, in _io_open_impl()
427 line_buffering ? Py_True : Py_False); in _io_open_impl()
H A Dtextio.c303 &_Py_ID(decode), input, final ? Py_True : Py_False, NULL); in _PyIncrementalNewlineDecoder_decode()
878 self->decoder, self->readtranslate ? Py_True : Py_False, NULL); in _textiowrapper_set_decoder()
897 eof ? Py_True : Py_False, NULL); in _textiowrapper_decode()
2579 input_chunk, cookie.need_eof ? Py_True : Py_False, NULL); in _io_TextIOWrapper_seek_impl()
/third_party/python/Python/
H A Dmarshal.c367 else if (v == Py_False) { in w_object()
1037 Py_INCREF(Py_False); in r_object()
1038 retval = Py_False; in r_object()
H A Dpylifecycle.c2247 Py_None, Py_False); /* newline, closefd */ in create_stdio()
2280 write_through = Py_False; in create_stdio()
2284 line_buffering = Py_False; in create_stdio()
/third_party/python/Modules/_decimal/
H A D_decimal.c126 Py_INCREF(Py_False); in incr_false()
127 return Py_False; in incr_false()
410 PyObject *b = flags&cm->flag ? Py_True : Py_False; in flags_as_dict()
639 res = (SdFlags(v)==SdFlags(w)) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare()
653 res = (SdFlags(v)==flags) ^ (op==Py_NE) ? Py_True : Py_False; in signaldict_richcompare()
6020 Py_INCREF(Py_False); in PyInit__decimal()
6021 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_False)); in PyInit__decimal()
/third_party/python/Modules/_sqlite/
H A Dmodule.c100 return Py_NewRef(Py_False); in pysqlite_complete_statement_impl()

Completed in 48 milliseconds

12