Unverified Kaydet (Commit) 176d2636 authored tarafından Inada Naoki's avatar Inada Naoki Kaydeden (comit) GitHub

bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning (GH-12505)

üst 2a4ce438
...@@ -694,6 +694,14 @@ The following exceptions are used as warning categories; see the ...@@ -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 Base class for warnings about features which will be deprecated in the
future. 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 .. exception:: SyntaxWarning
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment