[issue1158] %f format for datetime objects
report at bugs.python.org
Mon Sep 17 15:50:09 CEST 2007
Skip Montanaro added the comment:
Continuing the discussion of strptime... It returns a time.struct_time.
Would it cause too much breakage (only do this in 3.0) to add a tm_usec
field to the end of that object? It seems a lot of bits of code might
still expect a length 9 tuple-ish thing and do this:
yy, mm, dd, hh, mm, ss, wk, j, tz = time.strptime(...)
If we could make that change for 3.0 that might allow strptime to parse
%f format codes.
Tracker <report at bugs.python.org>
More information about the Python-bugs-list