Mention plan to remove ``raise Exception, "message"`` style of raising
exceptions.
This commit is contained in:
parent
c09c6c6a95
commit
9c2cb031b8
|
@ -67,6 +67,7 @@ To be removed:
|
||||||
|
|
||||||
* The ``lambda`` statement: use nested or named functions [1]_, [9]_
|
* The ``lambda`` statement: use nested or named functions [1]_, [9]_
|
||||||
* String exceptions: use instances of an Exception class [2]_
|
* String exceptions: use instances of an Exception class [2]_
|
||||||
|
* ``raise Exception, "message"``: use ``raise Exception("message")`` [14]_
|
||||||
* ```x```: use ``repr(x)`` [2]_
|
* ```x```: use ``repr(x)`` [2]_
|
||||||
* The ``<>`` operator: use ``!=`` instead [3]_
|
* The ``<>`` operator: use ``!=`` instead [3]_
|
||||||
* Unbound methods [7]_
|
* Unbound methods [7]_
|
||||||
|
@ -153,6 +154,9 @@ References
|
||||||
.. [13] python-dev email ("anonymous blocks")
|
.. [13] python-dev email ("anonymous blocks")
|
||||||
http://mail.python.org/pipermail/python-dev/2005-April/053060.html
|
http://mail.python.org/pipermail/python-dev/2005-April/053060.html
|
||||||
|
|
||||||
|
.. [14] python-dev email ("PEP 8: exception style")
|
||||||
|
http://mail.python.org/pipermail/python-dev/2005-August/055190.html
|
||||||
|
|
||||||
|
|
||||||
Copyright
|
Copyright
|
||||||
=========
|
=========
|
||||||
|
|
Loading…
Reference in New Issue