In article <7ace3de0-4588-4b7d-9848-d97298717...@z41g2000yqz.googlegroups.com>,
n00m  <n...@narod.ru> wrote:
>> Or just raise an exception in __init__(),..
>
>Then we are forced to handle this exception outside of class code.

Absolutely!  That's the whole point.  If you can't construct the class,
you *should* raise an error.  The only other workable option is to leave
the target set to None, which is uglier because you don't track the
error.
-- 
Aahz (a...@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.  
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to