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. -- https://mail.python.org/mailman/listinfo/python-list