Why does __init__ not get called?

Rob Conner rtconner at gmail.com
Tue Aug 9 17:29:46 CEST 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