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:[EMAIL PROTECTED]
-- http://mail.python.org/mailman/listinfo/python-list