[issue17199] Slightly wrong behavior of logging.StrFormatStyle.usesTime

Vinay Sajip report at bugs.python.org
Wed Feb 13 15:28:50 CET 2013


Vinay Sajip added the comment:

It's not a bug - the reason it's like that is that it allows conversion and format specifiers to be given - {field_name!conversion:format_spec}.

Of course a more robust solution using regular expressions could be implemented, but it's not really worth it. If there's a misspelt field name, generally you'll know because there will either be an exception raised, or (in production) no output will be produced.

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17199>
_______________________________________


More information about the Python-bugs-list mailing list