Cancel instance create

Aigars Aigars srad at inbox.lv
Sat Sep 6 14:31:09 CEST 2008


I do not want code outside my class to perform tests and decide to
create instance or not.
Fredrik Lundh's advice to rise exception works perfectly.

Thanks to all,
Aigars
 Quoting Mohamed Yousef : ًWhat about no Constructor , and a
custom instancing function that can
 return either None or the instance wanted
 --
 http://mail.python.org/mailman/listinfo/python-list
 

Links:
------
[1] mailto:harrrrpo at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080906/b55b8161/attachment.html>


More information about the Python-list mailing list