diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-03-31 21:57:13 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-03-31 21:57:13 +0000 |
commit | cf0b7135abe1b0dd5940e72911b2dec95fc851ab (patch) | |
tree | 74489c25814d0d8bea185ec3132d7e67ec6a261e /Doc | |
parent | ff059bd42d8f6d92d7cfafcf36a0e1633457e706 (diff) | |
download | cpython-cf0b7135abe1b0dd5940e72911b2dec95fc851ab.tar.gz |
PyErr_Warn is decrepated. Use PyErr_WarnEx
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/warnings.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 076d357f69..d2e5b681bc 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -16,7 +16,7 @@ warrant raising an exception and terminating the program. For example, one might want to issue a warning when a program uses an obsolete module. Python programmers issue warnings by calling the :func:`warn` function defined -in this module. (C programmers use :cfunc:`PyErr_Warn`; see +in this module. (C programmers use :cfunc:`PyErr_WarnEx`; see :ref:`exceptionhandling` for details). Warning messages are normally written to ``sys.stderr``, but their disposition |