Python Distilled

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Nov 6 11:11:41 CET 2006


In <1162790565.418382.237050 at m73g2000cwd.googlegroups.com>, 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



More information about the Python-list mailing list