[Python-bugs-list] [ python-Bugs-757815 ] Infinite floats don't work in compiled modules on windows

SourceForge.net noreply@sourceforge.net
Fri, 20 Jun 2003 04:11:23 -0700


Bugs item #757815, was opened at 2003-06-20 11:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=757815&group_id=5470

Category: Windows
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Jiba (jiba)
Assigned to: Tim Peters (tim_one)
Summary: Infinite floats don't work in compiled modules on windows

Initial Comment:
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).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=757815&group_id=5470