/external/python/cpython2/Include/ |
D | boolobject.h | 24 #define Py_True ((PyObject *) &_Py_TrueStruct) macro 27 #define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
|
D | py_curses.h | 159 Py_INCREF(Py_True); \ 160 return Py_True; }
|
/external/python/cpython2/Modules/_io/ |
D | iobase.c | 167 if (args == Py_True) in _PyIOBase_check_closed() 186 PyObject_SetAttrString(self, "__IOBase_closed", Py_True); in iobase_close() 320 if (res != Py_True) { in _PyIOBase_check_seekable() 325 if (args == Py_True) { in _PyIOBase_check_seekable() 349 if (res != Py_True) { in _PyIOBase_check_readable() 354 if (args == Py_True) { in _PyIOBase_check_readable() 378 if (res != Py_True) { in _PyIOBase_check_writable() 383 if (args == Py_True) { in _PyIOBase_check_writable() 394 if (_PyIOBase_check_closed(self, Py_True) == NULL) in iobase_enter() 430 if (_PyIOBase_check_closed(self, Py_True) == NULL) in iobase_isatty() [all …]
|
D | bufferedio.c | 1262 if (_PyIOBase_check_readable(raw, Py_True) == NULL) in bufferedreader_init() 1684 if (_PyIOBase_check_writable(raw, Py_True) == NULL) in bufferedwriter_init() 2072 if (_PyIOBase_check_readable(reader, Py_True) == NULL) in bufferedrwpair_init() 2074 if (_PyIOBase_check_writable(writer, Py_True) == NULL) in bufferedrwpair_init() 2336 if (_PyIOBase_check_seekable(raw, Py_True) == NULL) in bufferedrandom_init() 2338 if (_PyIOBase_check_readable(raw, Py_True) == NULL) in bufferedrandom_init() 2340 if (_PyIOBase_check_writable(raw, Py_True) == NULL) in bufferedrandom_init()
|
D | textio.c | 276 _PyIO_str_decode, input, final ? Py_True : Py_False, NULL); in _PyIncrementalNewlineDecoder_decode() 1157 else if (_PyIOBase_check_closed((PyObject *)self, Py_True) == NULL) \ 1452 _PyIO_str_decode, input_chunk, eof ? Py_True : Py_False, NULL); in textiowrapper_read_chunk() 1518 bytes, Py_True, NULL); in textiowrapper_read()
|
/external/python/cpython2/Doc/c-api/ |
D | bool.rst | 9 two booleans, :const:`Py_False` and :const:`Py_True`. As such, the normal 27 .. c:var:: PyObject* Py_True 43 Return :const:`Py_True` from a function, properly incrementing its reference 51 Return a new reference to :const:`Py_True` or :const:`Py_False` depending on the
|
/external/python/cpython2/Objects/ |
D | boolobject.c | 43 result = Py_True; in PyBool_FromLong()
|
D | methodobject.c | 253 res = eq ? Py_True : Py_False; in meth_richcompare() 255 res = eq ? Py_False : Py_True; in meth_richcompare()
|
D | codeobject.c | 461 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_True); in _PyCode_ConstantKey() 610 res = Py_True; in code_richcompare() 619 res = Py_True; in code_richcompare()
|
D | tupleobject.c | 620 res = Py_True; in tuplerichcompare() 633 Py_INCREF(Py_True); in tuplerichcompare() 634 return Py_True; in tuplerichcompare()
|
D | listobject.c | 2390 res = Py_True; in list_richcompare() 2421 res = Py_True; in list_richcompare() 2434 Py_INCREF(Py_True); in list_richcompare() 2435 return Py_True; in list_richcompare()
|
/external/python/cpython2/Modules/ |
D | _curses_panel.c | 153 else { Py_INCREF(Py_True); return Py_True; } }
|
D | _cursesmodule.c | 255 else { Py_INCREF(Py_True); return Py_True; } } 1242 Py_INCREF(Py_True); in PyCursesWindow_Is_LineTouched() 1243 return Py_True; in PyCursesWindow_Is_LineTouched() 1888 Py_INCREF(Py_True); in PyCurses_has_key() 1889 return Py_True; in PyCurses_has_key() 2120 Py_INCREF(Py_True); in PyCurses_Is_Term_Resized() 2121 return Py_True; in PyCurses_Is_Term_Resized()
|
D | _json.c | 1548 Py_INCREF(Py_True); in scan_once_str() 1550 return Py_True; in scan_once_str() 1640 Py_INCREF(Py_True); in scan_once_unicode() 1642 return Py_True; in scan_once_unicode() 1944 else if (obj == Py_True) { in _encoded_const() 2016 if (obj == Py_None || obj == Py_True || obj == Py_False) { in encoder_listencode_obj() 2181 else if (key == Py_True || key == Py_False || key == Py_None) { in encoder_listencode_dict()
|
D | operator.c | 169 result = (a1 == a2) ? Py_True : Py_False; in is_() 180 result = (a1 != a2) ? Py_True : Py_False; in is_not()
|
D | arraymodule.c | 526 res = Py_True; in array_richcompare() 565 res = Py_True; in array_richcompare() 578 Py_INCREF(Py_True); in array_richcompare() 579 res = Py_True; in array_richcompare()
|
D | _ssl.c | 3799 if (keyusage == Py_True) { in PySSL_enum_certificates() 4289 r = Py_True; in init_ssl() 4297 r = Py_True; in init_ssl() 4307 r = Py_True; in init_ssl() 4313 r = Py_True; in init_ssl() 4321 r = Py_True; in init_ssl()
|
/external/python/cpython2/Modules/_sqlite/ |
D | row.c | 205 if ((opid == Py_EQ && res == Py_True) in pysqlite_row_richcompare()
|
D | module.c | 100 result = Py_True; in module_complete()
|
/external/python/cpython2/Python/ |
D | structmember.c | 205 if (v == Py_True) in PyMember_SetOne()
|
D | marshal.c | 236 else if (v == Py_True) { in w_object() 684 Py_INCREF(Py_True); in r_object() 685 retval = Py_True; in r_object()
|
D | _warnings.c | 185 return PyDict_SetItem(registry, key, Py_True); in already_warned() 363 PyDict_SetItem(registry, key, Py_True) < 0) in warn_explicit()
|
D | ceval.c | 1349 Py_INCREF(Py_True); in PyEval_EvalFrameEx() 1350 SET_TOP(Py_True); in PyEval_EvalFrameEx() 2571 x = res ? Py_True : Py_False; in PyEval_EvalFrameEx() 2673 if (w == Py_True) { in PyEval_EvalFrameEx() 2701 if (w == Py_True) { in PyEval_EvalFrameEx() 2722 if (w == Py_True) { in PyEval_EvalFrameEx() 2752 if (w == Py_True) { in PyEval_EvalFrameEx() 4860 v = res ? Py_True : Py_False; in cmp_outcome()
|
/external/python/cpython2/Mac/Modules/cf/ |
D | pycfbridge.c | 255 if (src == Py_True) in PyCF_Python2CF_simple()
|
/external/python/cpython2/Mac/Modules/ |
D | MacOS.c | 613 rv = Py_True;
|