View Single Post
  #8 (permalink)  
Old 11-25-2009, 08:38 PM
Aahz
Guest
 
Posts: n/a
Default Re: Can "self" crush itself?

In article <mailman.965.1259143133.2873.python-list@python.org>,
Chris Rebert <clp2@rebertia.com> wrote:
>
>If you want to prevent an instance being created in the first place,
>you can override __new__().


Or just raise an exception in __init__(), which I think is more common
practice.
--
Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.
Reply With Quote