sorting a list of dicts by a computed field
jladasky at itu.edu
jladasky at itu.edu
Tue Jan 31 16:23:43 EST 2017
On Tuesday, January 31, 2017 at 12:34:38 PM UTC-8, MRAB wrote:
> On 2017-01-31 20:26, Larry Martell wrote:
> The module 'datetime' contains a class called 'datetime'. Judging by
> your exception, 'datetime' is the module.
>
> Try "datetime.datetime.strptime" instead.
This re-use of the name "datetime" has tripped me up more than once. It's one of my few grumbles with the Python standard library.
More information about the Python-list
mailing list