[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows
Majeed Arni added the comment: Though %f is a valid format from Python's doc https://docs.python.org/2/library/datetime.html, the fix just ignores it on Windows? can we atleast get milliseconds on Windows and Micro on Linux? %f Microsecond as a decimal number, zero-padded on the left. 00, 01, ..., 99 (4) %f is an extension to the set of format characters in the C standard (but implemented separately in datetime objects, and therefore always available). When used with the strptime() method, the %f directive accepts from one to six digits and zero pads on the right. New in version 2.6. -- ___ Python tracker <http://bugs.python.org/issue24244> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10762] strftime('%f') segfault
Majeed Arni added the comment: The problem still exists in 3.4 and 3.5 a4 Unhandled exception in thread started by -- nosy: +MajeedArni versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue10762> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24244] Python Crash on strftime with %f on Python 3
New submission from Majeed Arni: http://bugs.python.org/issue11735 fixed in 2.7, but in 3.4 and 3.5 the same problem exists. Just crashes python. -- components: Library (Lib) messages: 243641 nosy: MajeedArni priority: normal severity: normal status: open title: Python Crash on strftime with %f on Python 3 versions: Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue24244> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24244] Python Crash on strftime with %f on Python 3
Majeed Arni added the comment: When we have this for format: date_format = '%Y %m %d %H:%M:%S %z' I see our logs as: [2015 05 19 17:36:09 -0500] watcher modified When I change the format to: [2015 05 20 08:51:24 -0500] stderr AttributeError: 'StreamLogger' object has no attribute 'flush' Unhandled exception in thread started by -- ___ Python tracker <http://bugs.python.org/issue24244> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24244] Python Crash on strftime with %f on Python 3 and Python 2
Majeed Arni added the comment: Actually it is happening in Python 2.7 too.. Here is the format we are trying to use: date_format = '%Y %m %d %H:%M:%S:%f %z' Also, is there something millisecond if not microsecond? -- title: Python Crash on strftime with %f on Python 3 -> Python Crash on strftime with %f on Python 3 and Python 2 versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue24244> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com