[issue6608] asctime does not check its input

MunSic JEONG report at bugs.python.org
Thu Sep 23 17:16:40 CEST 2010


MunSic JEONG <ruseel at gmail.com> added the comment:

As alexandre.vassalotti pointed in msg107596, I added precondition check.

 * extracted the range check from time_strftime as "is_valid_tm".
 * time_asctime, time_strftime call "is_valid_tm"

 * testcase for both asctime and strftime (abbeyj's work)

I splited patch just for unittest files(Lib/test/test_time.py) and (Modules/timemodule.c)

----------
keywords: +patch
nosy: +ruseel
Added file: http://bugs.python.org/file18976/issue6608-timemodule.patch

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


More information about the Python-bugs-list mailing list