[issue24244] Python Crash on strftime with %f on Python 3 and Python 2

2015-05-20 Thread Majeed Arni
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

[issue24244] Python Crash on strftime with %f on Python 3

2015-05-20 Thread Majeed Arni
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

[issue24244] Python Crash on strftime with %f on Python 3

2015-05-20 Thread R. David Murray
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

[issue24244] Python Crash on strftime with %f on Python 3

2015-05-20 Thread eryksun
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

[issue24244] Python Crash on strftime with %f on Python 3

2015-05-19 Thread R. David Murray
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

[issue24244] Python Crash on strftime with %f on Python 3

2015-05-19 Thread Majeed Arni
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