Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > 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
On the other hand... >>> import exceptions >>> class E(exceptions.Exception): ... pass ... >>> raise E Traceback (most recent call last): File "<stdin>", line 1, in ? __main__.E >>> This also has the advantage to let it explicit in the code that E is an exception. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list