Author jiba
Recipients
Date 2003-06-20.11:11:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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).
History
Date User Action Args
2007-08-23 14:14:09adminlinkissue757815 messages
2007-08-23 14:14:09admincreate