Home
last modified time | relevance | path

Searched refs:Py_True (Results 1 – 25 of 51) sorted by relevance

123

/external/python/cpython2/Include/
Dboolobject.h24 #define Py_True ((PyObject *) &_Py_TrueStruct) macro
27 #define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
Dpy_curses.h159 Py_INCREF(Py_True); \
160 return Py_True; }
/external/python/cpython2/Modules/_io/
Diobase.c167 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 …]
Dbufferedio.c1262 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()
Dtextio.c276 _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/
Dbool.rst9 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/
Dboolobject.c43 result = Py_True; in PyBool_FromLong()
Dmethodobject.c253 res = eq ? Py_True : Py_False; in meth_richcompare()
255 res = eq ? Py_False : Py_True; in meth_richcompare()
Dcodeobject.c461 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()
Dtupleobject.c620 res = Py_True; in tuplerichcompare()
633 Py_INCREF(Py_True); in tuplerichcompare()
634 return Py_True; in tuplerichcompare()
Dlistobject.c2390 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.c153 else { Py_INCREF(Py_True); return Py_True; } }
D_cursesmodule.c255 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.c1548 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()
Doperator.c169 result = (a1 == a2) ? Py_True : Py_False; in is_()
180 result = (a1 != a2) ? Py_True : Py_False; in is_not()
Darraymodule.c526 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.c3799 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/
Drow.c205 if ((opid == Py_EQ && res == Py_True) in pysqlite_row_richcompare()
Dmodule.c100 result = Py_True; in module_complete()
/external/python/cpython2/Python/
Dstructmember.c205 if (v == Py_True) in PyMember_SetOne()
Dmarshal.c236 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.c185 return PyDict_SetItem(registry, key, Py_True); in already_warned()
363 PyDict_SetItem(registry, key, Py_True) < 0) in warn_explicit()
Dceval.c1349 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/
Dpycfbridge.c255 if (src == Py_True) in PyCF_Python2CF_simple()
/external/python/cpython2/Mac/Modules/
DMacOS.c613 rv = Py_True;

123