Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:
On Sun, Jan 2, 2011 at 10:52 AM, Georg Brandl <rep...@bugs.python.org> wrote: .. > Well, then I would have no problem with checking for that condition > beforehand and raising > ValueError. > IIRC, there was a similar bug report about ctime where pre-condition checking was required because platform ctime would crash for huge values of time. I'll try to find the ticket. > On the other hand, it seems that implementations either return a correct > string or NULL, > so just erroring out in case of NULL would be fine as well. This is true on the platforms that I have access to: OSX, Linux, and Solaris. I think asctime_r is available and behaves this way on Python supported platforms. I'll check this in and watch the bots. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8013> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com