Home
last modified time | relevance | path

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

12

/external/python/cpython2/Include/
Dboolobject.h23 #define Py_False ((PyObject *) &_Py_ZeroStruct) macro
28 #define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False
Dpy_curses.h156 Py_INCREF(Py_False); \
157 return Py_False; \
/external/python/cpython2/Doc/c-api/
Dbool.rst9 two booleans, :const:`Py_False` and :const:`Py_True`. As such, the normal
21 .. c:var:: PyObject* Py_False
35 Return :const:`Py_False` 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.c45 result = Py_False; in PyBool_FromLong()
56 PyObject *x = Py_False; in bool_new()
Dmethodobject.c253 res = eq ? Py_True : Py_False; in meth_richcompare()
255 res = eq ? Py_False : Py_True; in meth_richcompare()
Dcodeobject.c464 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_False); in _PyCode_ConstantKey()
612 res = Py_False; in code_richcompare()
621 res = Py_False; in code_richcompare()
Dtupleobject.c622 res = Py_False; in tuplerichcompare()
629 Py_INCREF(Py_False); in tuplerichcompare()
630 return Py_False; in tuplerichcompare()
Dcomplexobject.c846 res = Py_False; in complex_richcompare()
1145 r = Py_False; in complex_new()
Dlistobject.c2388 res = Py_False; in list_richcompare()
2423 res = Py_False; in list_richcompare()
2430 Py_INCREF(Py_False); in list_richcompare()
2431 return Py_False; in list_richcompare()
Dmemoryobject.c746 res = Py_False; in memory_richcompare()
/external/python/cpython2/Modules/
D_curses_panel.c152 if (X (self->pan) == FALSE) { Py_INCREF(Py_False); return Py_False; } \
DcStringIO.c89 PyObject *result = Py_False; in IO_get_closed()
152 Py_INCREF(Py_False); in IO_isatty()
153 return Py_False; in IO_isatty()
D_cursesmodule.c254 if (X (self->win) == FALSE) { Py_INCREF(Py_False); return Py_False; } \
1239 Py_INCREF(Py_False); in PyCursesWindow_Is_LineTouched()
1240 return Py_False; in PyCursesWindow_Is_LineTouched()
1885 Py_INCREF(Py_False); in PyCurses_has_key()
1886 return Py_False; in PyCurses_has_key()
2123 Py_INCREF(Py_False); in PyCurses_Is_Term_Resized()
2124 return Py_False; in PyCurses_Is_Term_Resized()
D_json.c1556 Py_INCREF(Py_False); in scan_once_str()
1558 return Py_False; in scan_once_str()
1648 Py_INCREF(Py_False); in scan_once_unicode()
1650 return Py_False; in scan_once_unicode()
1952 else if (obj == Py_False) { 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.c524 res = Py_False; in array_richcompare()
567 res = Py_False; in array_richcompare()
574 Py_INCREF(Py_False); in array_richcompare()
575 res = Py_False; in array_richcompare()
D_ssl.c3313 PyObject *ci = NULL, *rlist = NULL, *py_binary_mode = Py_False; in get_ca_certs()
4291 r = Py_False; in init_ssl()
4299 r = Py_False; in init_ssl()
4305 r = Py_False; in init_ssl()
4315 r = Py_False; in init_ssl()
4323 r = Py_False; in init_ssl()
D_hotshot.c1195 PyObject *result = (self->logfp == NULL) ? Py_True : Py_False; in profiler_get_closed()
1299 PyObject *result = (self->logfp == NULL) ? Py_True : Py_False; in logreader_get_closed()
/external/python/cpython2/Mac/Modules/
DMacOS.c604 rv = Py_False;
611 rv = Py_False;
/external/python/cpython2/Modules/_sqlite/
Drow.c206 || (opid == Py_NE && res == Py_False)) { in pysqlite_row_richcompare()
Dmodule.c102 result = Py_False; in module_complete()
Dconnection.c1575 Py_INCREF(Py_False); in pysqlite_connection_exit()
1576 return Py_False; in pysqlite_connection_exit()
/external/python/cpython2/Python/
Dmarshal.c233 else if (v == Py_False) { in w_object()
679 Py_INCREF(Py_False); in r_object()
680 retval = Py_False; in r_object()
Dceval.c1354 Py_INCREF(Py_False); in PyEval_EvalFrameEx()
1355 SET_TOP(Py_False); in PyEval_EvalFrameEx()
2571 x = res ? Py_True : Py_False; in PyEval_EvalFrameEx()
2677 if (w == Py_False) { in PyEval_EvalFrameEx()
2697 if (w == Py_False) { in PyEval_EvalFrameEx()
2727 if (w == Py_False) { in PyEval_EvalFrameEx()
2747 if (w == Py_False) { in PyEval_EvalFrameEx()
4860 v = res ? Py_True : Py_False; in cmp_outcome()
Dbltinmodule.c910 Py_INCREF(Py_False); in builtin_hasattr()
911 return Py_False; in builtin_hasattr()
2708 SETBUILTIN("False", Py_False); in _PyBuiltin_Init()

12