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

Michael Hudson mwh at python.net
Wed Jul 23 04:43:06 EDT 2003


warkid at hotbox.ru (Kerim) writes:

> "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
> >>>

Try running 'python -Wall'.

Cheers,
M.

-- 
  Well, you pretty much need Microsoft stuff to get misbehaviours
  bad enough to actually tear the time-space continuum.  Luckily 
  for you, MS Internet Explorer is available for Solaris.
                              -- Calle Dybedahl, alt.sysadmin.recovery




More information about the Python-list mailing list