Home
last modified time | relevance | path

Searched refs:PyErr_WarnEx (Results 1 – 18 of 18) sorted by relevance

/external/python/cpython2/Include/
Dwarnings.h9 PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t);
14 (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0)
17 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
/external/python/cpython2/Python/
Dpystrtod.c282 if (PyErr_WarnEx(PyExc_DeprecationWarning, in PyOS_ascii_strtod()
725 if (PyErr_WarnEx(PyExc_DeprecationWarning, in PyOS_ascii_formatd()
D_warnings.c709 PyErr_WarnEx(PyObject *category, const char *text, Py_ssize_t stack_level) in PyErr_WarnEx() function
736 return PyErr_WarnEx(category, text, 1); in PyErr_Warn()
Dceval.c3887 if (PyErr_WarnEx(PyExc_DeprecationWarning, in do_raise()
4813 ret_val = PyErr_WarnEx( in cmp_outcome()
4825 ret_val = PyErr_WarnEx( in cmp_outcome()
4836 ret_val = PyErr_WarnEx( in cmp_outcome()
4848 ret_val = PyErr_WarnEx( in cmp_outcome()
Dimport.c2474 if (!PyErr_WarnEx(PyExc_RuntimeWarning, in get_parent()
/external/python/cpython2/Doc/c-api/
Dexceptions.rst268 .. c:function:: int PyErr_WarnEx(PyObject *category, char *message, int stacklevel)
274 is the function calling :c:func:`PyErr_WarnEx`, 2 is the function above that,
310 calling :c:func:`PyErr_WarnEx` with a *stacklevel* of 1.
312 Deprecated; use :c:func:`PyErr_WarnEx` instead.
/external/python/cpython2/Doc/data/
Drefcounts.dat351 PyErr_WarnEx:int:::
352 PyErr_WarnEx:PyObject*:category:0:
353 PyErr_WarnEx:const char*:message::
354 PyErr_WarnEx:Py_ssize_t:stack_level::
/external/python/cpython2/Modules/
D_struct.c139 if (PyErr_WarnEx( in get_pylong()
145 if (PyErr_WarnEx( in get_pylong()
/external/python/cpython2/Objects/
Dobject.c906 PyErr_WarnEx(PyExc_DeprecationWarning, in try_3way_to_rich_compare()
1773 if (PyErr_WarnEx(PyExc_DeprecationWarning, in merge_list_attr()
Dbytearrayobject.c1009 if (PyErr_WarnEx(PyExc_BytesWarning, in bytearray_str()
1038 if (PyErr_WarnEx(PyExc_BytesWarning, in bytearray_richcompare()
Dtypeobject.c671 PyErr_WarnEx(PyExc_DeprecationWarning, in type_richcompare()
2946 err = PyErr_WarnEx(PyExc_DeprecationWarning, in object_init()
2969 err = PyErr_WarnEx(PyExc_DeprecationWarning, in object_new()
3569 if (PyErr_WarnEx(PyExc_PendingDeprecationWarning,
Dexceptions.c330 if (PyErr_WarnEx(PyExc_DeprecationWarning, in BaseException_get_message()
Dfileobject.c775 if (PyErr_WarnEx(PyExc_DeprecationWarning, in file_seek()
Dabstract.c791 if (PyErr_WarnEx(
/external/python/cpython2/Doc/library/
Dwarnings.rst22 in this module. (C programmers use :c:func:`PyErr_WarnEx`; see
/external/python/cpython2/Modules/_io/
Dbufferedio.c1640 if (PyErr_WarnEx(PyExc_DeprecationWarning, in complain_about_max_buffer_size()
/external/python/cpython2/Doc/whatsnew/
D2.5.rst2184 favour of :c:func:`PyErr_WarnEx(category, message, stacklevel)` which lets you
2186 *stacklevel* of 1 is the function calling :c:func:`PyErr_WarnEx`, 2 is the
/external/python/cpython2/Misc/
DHISTORY189 - Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn().
191 PyErr_Warn() is now deprecated in favor of PyErr_WarnEx().