[issue20163] ValueError: time data does not match format

2014-03-28 Thread dellair jie
dellair jie added the comment: We've found a workaround to handle the timestr manually. Thanks, -- status: open -> closed ___ Python tracker ___ _

[issue20163] ValueError: time data does not match format

2014-01-07 Thread dellair jie
dellair jie added the comment: Victor, HPUX 11.31 was first released in 2007, we keep upgrading and the latest update is in 2013. ^_^ A workaround sounds fine. By re-implementing strftime(), do you mean to patch it from: http://bugs.python.org/issue1777412? -- __

[issue20163] ValueError: time data does not match format

2014-01-07 Thread STINNER Victor
STINNER Victor added the comment: > We get an empty string for the name. :) Ok, it's maybe time to upgrade to Linux :-) (How old is HPUX? I didn't know that it's still in use.) I don't see how Python could workaround the issue if strftime("%b") doesn't work. An option would be to reimplemenet

[issue20163] ValueError: time data does not match format

2014-01-07 Thread dellair jie
dellair jie added the comment: We get an empty string for the name. :) >>> time.strftime("%b", time.gmtime(1387036705)) '' -- ___ Python tracker ___

[issue20163] ValueError: time data does not match format

2014-01-07 Thread STINNER Victor
STINNER Victor added the comment: > >>> time.strptime ("Dec", "%b") > ValueError: unconverted data remains: Dec Ok, so what is the name of the December month? >>> import time >>> time.strftime("%b", time.gmtime(1387036705)) 'Dec' -- ___ Python track

[issue20163] ValueError: time data does not match format

2014-01-07 Thread dellair jie
dellair jie added the comment: The output of command: $ date +'%b' Jan $ uname -a HP-UX test5 B.11.31 U ia64 4201936010 unlimited-user license -- ___ Python tracker ___

[issue20163] ValueError: time data does not match format

2014-01-07 Thread dellair jie
dellair jie added the comment: Victor, Thanks for the comment. Isolated, the error happens at: >>> import time >>> time.strptime ("Dec", "%b") Traceback (most recent call last): File "", line 1, in File "/python/lib/python3.3/_strptime.py", line 494, in _strptime_time tt = _strptime(d

[issue20163] ValueError: time data does not match format

2014-01-07 Thread STINNER Victor
STINNER Victor added the comment: Try to isolate which field fails. Example: >>> import time >>> time.strptime ("10-Dec-13.20:07:49", "%d-%b-%y.%H:%M:%S") time.struct_time(tm_year=2013, tm_mon=12, tm_mday=10, tm_hour=20, tm_min=7, tm_sec=49, tm_wday=1, tm_yday=344, tm_isdst=-1) >>> time.strptim

[issue20163] ValueError: time data does not match format

2014-01-07 Thread dellair jie
New submission from dellair jie: Hello, We are using Python 3.3.2 for HPUX11.31. The following error happens only on HPUX, works on SunOS, RHEL, AIX. python Python 3.3.2 (default, Dec 9 2013, 14:04:25) [C] on hp-ux11 Type "help", "copyright", "credits" or "license" for more information. >>> f