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/2012-February/116104.html below:

[Python-Dev] PEP 409 - final?

[Python-Dev] PEP 409 - final? [Python-Dev] PEP 409 - final?Eric V. Smith eric at trueblade.com
Thu Feb 2 02:01:03 CET 2012
On 2/1/2012 7:49 PM, Nick Coghlan wrote:
> On Thu, Feb 2, 2012 at 10:44 AM, Tim Delaney
> <timothy.c.delaney at gmail.com> wrote:
>>> 3) Should it be an exception, or just inherit from object?
>>>   Is it worth worrying about somebody trying to raise it, or
>>>   raise from it?
>>
>> If it's not actually an exception, we get prevention of instantiation for
>> free. My feeling is just make it a singleton object.
> 
> Yeah, a new Ellipsis/None style singleton probably makes more sense
> than an exception instance.

But now we're adding a new singleton, unrelated to exceptions (other
than its name) because we don't want to use an existing singleton (False).

Maybe the name difference is good enough justification.

Eric.

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