[Python-Dev] PEP 409 - final? (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Thu Feb 2 01:49:32 CET 2012
- Previous message: [Python-Dev] PEP 409 - final?
- Next message: [Python-Dev] PEP 409 - final?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-Dev] PEP 409 - final?
- Next message: [Python-Dev] PEP 409 - final?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]