exceptions with spaces don't work??

Skip Montanaro skip at pobox.com
Tue Apr 8 02:43:04 CEST 2003


    Paul> If I raise an exception with a string, as in:
    Paul>     raise 'somestring'
    Paul> then my statement
    Paul>     except 'somestring':
    Paul> will catch it unless there are spaces....
    ...
    Paul> Is this a bug??

Dunno, however, note that string exceptions have been deprecated for a long
time (since 2.0 or 2.1 I think) and will completely go away at some point.
If there's a bug there I doubt fixing it will be real high priority.

Skip






More information about the Python-list mailing list