Message16542
On windows, let's consider the following Python module :
# test.py
INFINITY = 10E40000
print INFINITY
When imported the first time (import test), it displays
"1.#inf" as expected.
But if you quit the Python interpreter, lauch a new one
and import the module again, it displays "1.0" !
The bug occurs only when the module is loaded from the
compiled file (test.pyc), and not when the source file
(test.py) is loaded and compiled.
BTW infinity behaves differently under Linux and
windows (under Linux, they are displayed as "inf", and
float("inf") is ok).
The bug seems to be windows-specific (never seen on
Linux). I tested it with Python 2.2.3 and 2.3b.
BTW infinity behaves differently under Linux and
windows (under Linux, they are displayed as "inf", and
float("inf") is ok).
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:14:09 | admin | link | issue757815 messages |
| 2007-08-23 14:14:09 | admin | create | |
|