A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-January/051118.html below:

[Python-Dev] Exceptions *must*? be old-style classes?

[Python-Dev] Exceptions *must*? be old-style classes? [Python-Dev] Exceptions *must*? be old-style classes?Phillip J. Eby pje at telecommunity.com
Sun Jan 16 16:18:21 CET 2005
At 10:28 AM 1/16/05 +0100, Martin v. Löwis wrote:
>Phillip J. Eby wrote:
>>Couldn't we require new-style exceptions to inherit from Exception?
>>Since there are no new-style exceptions that work now, this can't break 
>>existing code.
>
>This would require to make Exception a new-style class, right?

 >>> class MyException(Exception,object): pass

 >>>

Not as far as I can see, no.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4