Cancel instance create

Aigars Aigars srad at
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,
 Quoting Mohamed Yousef : ًWhat about no Constructor , and a
custom instancing function that can
 return either None or the instance wanted

[1] mailto:harrrrpo at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list