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
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'
U
R. David Murray added the comment:
The ValueError is not a bug. Not all format codes are supported on all
platforms (we start from what the platform supports, and then we have a few we
have implemented cross platform, but that isn't one of them). We also pass
through the behavior of the unde
eryksun added the comment:
> I cannot reproduce it based on the existing issues using python
> 3.4.1 on Windows 7.
Majeed could be referring to the ValueError that gets raised for this [only on
Windows][1]. In Linux %f passes through silently. Maybe for 3.5 an alternate
approach would be to d
R. David Murray added the comment:
Please follow Ned's suggestion that prompted you to open this issue and report
the exact version of python, your OS, and how to reproduce it. I cannot
reproduce it based on the existing issues using python 3.4.1 on Windows 7.
--
nosy: +r.david.murray
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