Diez B. Roggisch wrote: > > The programmer is responsible for the construction of new instances (or > at least the code which will do that), and a constructor should contain > parameters for at least the values you absolutely expect to be there - > for example name and age or something like that in your example.
Age? Absolutely expect?? Call me crazy, but I'd record the primary information (date of birth), *if* available, and derive age on the fly if possible if and only if needed. -- http://mail.python.org/mailman/listinfo/python-list