Message125070
On Sun, Jan 2, 2011 at 10:52 AM, Georg Brandl <report@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. |
|
Date |
User |
Action |
Args |
2011-01-02 18:52:36 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, georg.brandl, belopolsky, wsanchez, ned.deily, Trundle, sandro.tosi, l0nwlf |
2011-01-02 18:52:34 | Alexander.Belopolsky | link | issue8013 messages |
2011-01-02 18:52:34 | Alexander.Belopolsky | create | |
|