Python 2.3c1: Raising a string doesn't trigger PendingDeprecationWarning.

Kerim warkid at hotbox.ru
Wed Jul 23 04:27:54 EDT 2003


"What's New in Python 2.3"
(http://www.python.org/doc/2.3c1/whatsnew/node17.html) says that
"Raising a string will now trigger PendingDeprecationWarning.". But
with Python 2.3c1 it seems that it isn't the case:

Python 2.3c1 (#44, Jul 18 2003, 14:32:36) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> raise 'error'
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
error
>>>




More information about the Python-list mailing list