summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-27 02:28:02 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-04-27 02:28:02 (GMT)
commita692c4df63a41c42f2ce10a4521136d1440a712d (patch)
treeb754f5f3a130f6e4f672585b1134601a25ee178d /Doc/c-api
parentba08f072d29f2108503a97bf495315e072ae7787 (diff)
downloadcpython-a692c4df63a41c42f2ce10a4521136d1440a712d.zip
cpython-a692c4df63a41c42f2ce10a4521136d1440a712d.tar.gz
cpython-a692c4df63a41c42f2ce10a4521136d1440a712d.tar.bz2
Added PyErr_WarnPy3k function. (issue 2671) I will be converting current Py3k warnings to the use of this function soon.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/exceptions.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 133bac9..2998521 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -344,6 +344,14 @@ is a separate error indicator for each thread.
described there.
+.. cfunction:: int PyErr_WarnPy3k(char *message, int stacklevel)
+
+ Issue a :exc:`DeprecationWarning` with the given *message* and *stacklevel*
+ if the :cdata:`Py_Py3kWarningFlag` flag is enabled.
+
+ .. versionadded:: 2.6
+
+
.. cfunction:: int PyErr_CheckSignals()
.. index::