How to read the Python tutorial?
tjreedy at udel.edu
Wed Nov 10 21:55:32 CET 2010
On 11/10/2010 10:13 AM, Zeynel wrote:
> For instance, when the tutorial has http://docs.python.org/release/2.6/library/datetime.html
> class datetime.datetime
> A combination of a date and a time. Attributes: year, month, day,
> hour, minute, second, microsecond, and tzinfo.
Note 'second' singular, as with other attributes.
> td = mDATE.seconds
You added a 's' to 'second', so
> in GAE development server I get
> AttributeError: 'datetime.datetime' object has no attribute 'seconds'
Terry Jan Reedy
More information about the Python-list