Steve Dower added the comment:

FWIW, those macros prevent a certain class of "undefined behavior," which in 
this case is to terminate the process rather than return an error code. They 
don't do anything to prevent crashes due to exploitation or malicious code.

The place for more robust formatting is datetime.__format__(), which from a 
quick test seems to be more strict about what is in the format string.

----------

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

Reply via email to