mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning (GH-12505)
This commit is contained in:
parent
2a4ce4387f
commit
176d26364b
2 changed files with 13 additions and 5 deletions
|
@ -694,6 +694,14 @@ The following exceptions are used as warning categories; see the
|
|||
Base class for warnings about features which will be deprecated in the
|
||||
future.
|
||||
|
||||
.. note::
|
||||
PendingDeprecationWarning was introduced as an "ignored by default"
|
||||
version of DeprecationWarning. But :exc:`DeprecationWarning` is also
|
||||
ignored by default since Python 2.7 and 3.2.
|
||||
There is not much difference between PendingDeprecationWarning and
|
||||
DeprecationWarning nowadays. DeprecationWarning is recommended
|
||||
in general.
|
||||
|
||||
|
||||
.. exception:: SyntaxWarning
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue