[Tutor] Message 'list' object has no attribute 'strptime ?
Kent Johnson
kent37 at tds.net
Thu Sep 4 22:33:06 CEST 2008
On Thu, Sep 4, 2008 at 4:05 PM, Wayne Watson
<sierra_mtnview at sbcglobal.net> wrote:
> Further info. If I put
> y = time.strptime("11 01 05", "%H %M %S")
> both in the function and in the main body. Only the line above in the
> function produces an error message.
>
> Here's a simple program that creates the problem.
>
> import datetime
>
> def verify_time(in_time):
> time = in_time.split(":")
Like greg suspected...time is now a list.
Kent
More information about the Tutor
mailing list