Re: Python Distilled



In <1162790565.418382.237050@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, 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
.



Relevant Pages

  • Re: Python Distilled
    ... Classic classes are still needed for exceptions: ... exceptions must be classes, instances, or strings, ... Marc 'BlackJack' Rintsch ...
    (comp.lang.python)
  • Re: Python Distilled
    ... exceptions must be classes, instances, or strings, ... Marc 'BlackJack' Rintsch ...
    (comp.lang.python)
  • Re: Python Distilled
    ... Classic classes are still needed for exceptions: ... TypeError: exceptions must be classes, instances, or strings, ...
    (comp.lang.python)
  • Re: Working with fixed format text dbs
    ... Could not open file new.dat for writing." ... is handled via exceptions. ... Marc 'BlackJack' Rintsch ...
    (comp.lang.python)
  • Re: the joyo of kanji
    ... Paul Blay wrote: ... going to be exceptions. ... Marc ... Prev by Date: ...
    (sci.lang.japan)