eryksun added the comment:

> If the error is suppressed, does windows fill in the rest of 
> the values and just leave the %f in the string?

No, it does not. I understand now why ValueError was an intentional choice 
here. The CRT actually breaks the loop with a goto if any call to expand_time 
fails. So raising a Python exception is the only reasonable course of action. 
(I still think maybe it's a good place to use the new _Py_BEGIN_SUPPRESS_IPH 
macro. That way instead of presuming what's a valid format code, it could just 
handle the EINVAL.)

----------
components:  -Windows
versions:  -Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24244>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to