On Dec 30, 5:23 am, thebjorn <[EMAIL PROTECTED]> wrote: > def age(dob, today=datetime.date.today()): > ... > > None of my unit tests caught that one :-)
interesting example I can see how it caused some trouble. A quick fix would be to write it: def age(dob, today=datetime.date.today ): and inside the definition invoke it as today() rather than just today. That way it still keeps the original spirit of the definition. i. -- http://mail.python.org/mailman/listinfo/python-list