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
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
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
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
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 rep