Why does __init__ not get called?

Rob Conner rtconner at gmail.com
Tue Aug 9 11:29:46 EDT 2005


Ah ok, thats interesting I hadn't even tried a valid date yet. Now how
do I get this thing to call __init__ when I pass in an invalid date and
the ValueError is thrown and caught within __new__.

dt = DateTime(2005, 02, 30)




More information about the Python-list mailing list