"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In <[EMAIL PROTECTED]>, Simon Wittber > wrote: > >> I'd also like to remove any deprecated or stuff which is left in for >> backwards functionality (eg Classic classes). > > Classic classes are still needed for exceptions: > >>>> class E(object): > ... pass > ... >>>> raise E > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: exceptions must be classes, instances, or strings (deprecated), > not type > > Ciao, > Marc 'BlackJack' Rintsch
I thought exceptions were converted to new-style classes for Py2.5 (http://docs.python.org/whatsnew/pep-352.html). I've not upgraded yet, so cannot easily test this - under what version of Python was your posted code run? -- Paul -- http://mail.python.org/mailman/listinfo/python-list