in reply to Re: Weird behavior of int()
in thread Weird behavior of int()
It seems like the contract of int() should always return an integer, or maybe undef. Inf and NaN ought to give warnings at least.use warnings; say int(1e400); # "Inf\n"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Weird behavior of int()
by sectokia (Friar) on May 21, 2024 at 05:00 UTC | |
by choroba (Cardinal) on May 21, 2024 at 09:03 UTC | |
by syphilis (Archbishop) on May 21, 2024 at 12:33 UTC | |
by NERDVANA (Priest) on May 21, 2024 at 20:44 UTC | |
by syphilis (Archbishop) on May 22, 2024 at 02:24 UTC | |
by NERDVANA (Priest) on May 22, 2024 at 05:14 UTC | |
| |
by pryrt (Abbot) on May 21, 2024 at 21:39 UTC | |
by ikegami (Patriarch) on May 21, 2024 at 23:11 UTC | |
| |
by NERDVANA (Priest) on May 21, 2024 at 21:01 UTC |