On Thu, Sep 4, 2008 at 4:05 PM, Wayne Watson
<[EMAIL PROTECTED]>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(":")
>
in_time.split(":") produces a list
> if len(time) <> 3:
> print
> print "Invalid format. Try again. hh:mm:ss, hh is 24 hour time."
> return False
> y = time.strptime("11 01 05", "%H %M %S")
>
a list object does not have a strptime method
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor