Alexander Belopolsky added the comment:

Historically, time and os modules have been considered low level, thin wrappers 
over system libc functions.  Users of these modules are the proverbial 
"consenting adults" who should understand their power and the associated risks.

The place to provide a better behaved strftime function is the datetime module, 
but I would leave time.stftime pretty much the way it is and would only 
consider making *fewer* checks on Windows if _Py_BEGIN_SUPPRESS_IPH / 
_Py_END_SUPPRESS_IPH macros can indeed help to avoid crashes on illegal format 
strings.

----------

_______________________________________
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