strptime in 2.3.3

Jon Willeke j.dot.willeke at verizon.dot.net
Thu Mar 25 09:44:07 EST 2004


Glawster wrote:

> I am parsing a list of directories that have a name format
> 'YearWeekNoDay', using the follwoing code
> 
>             print "%s" % (time.strptime (list_dir[j], '%Y%U%w'))
> 
> strptime doesn't seem to be treating this correctly, have I missed
> something?

Looks like a bug.  Note that the implementation of strptime in 2.3 is 
brand new.



More information about the Python-list mailing list