Re: Bizarre behavior with mutable default arguments
This is a well-known python gotcha. See: http://www.ferg.org/projects/python_gotchas.html#contents_item_6 -- http://mail.python.org/mailman/listinfo/python-list
Re: Calculate an age
You might want to look at pyfdate: http://www.ferg.org/pyfdate This Python program: == from pyfdate import * birthday = Time(2000,2,29) today = Time(2003,2,28) years, months, period = today.diffym(birthday) print "On", to