[ python-Bugs-1080440 ] float issue for NaN type in .pyc file
SourceForge.net
noreply at sourceforge.net
Tue Dec 7 07:24:58 CET 2004
Bugs item #1080440, was opened at 2004-12-07 13:24
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=1080440&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dileep Nirala (dileep_nirala)
Assigned to: Nobody/Anonymous (nobody)
Summary: float issue for NaN type in .pyc file
Initial Comment:
There is a difference in output between .pyc and .py
file, while dealing with NaN float. In fact I am doing
a float range validation as part of my requirement.
The content of my sample program
[test.py]
aboveMax = 1.8e+308
belowMin = -1.8e+308
print aboveMax, belowMin
While execution:
command: python test.py
output: 1.#INF -1.#INF
This output is expected and good, however if I use
compiled python file as below,
command: python test.pyc
output: 1.0 -1.0
This output is wrong, it does not show Nan floating
point.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1080440&group_id=5470
More information about the Python-bugs-list
mailing list