[ python-Bugs-1378305 ] Import value 1e400 from pyc fails

SourceForge.net noreply at sourceforge.net
Sun Dec 11 22:09:11 CET 2005


Bugs item #1378305, was opened at 2005-12-11 21:09
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=1378305&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Guenter Jantzen (gjantzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Import value 1e400  from pyc fails

Initial Comment:
-------------------------------------------
#file: bug.py
#sys.version_info (2, 4, 2, 'final', 0)
#Platform is Windows XP

import sys, bug
infinity = 1e400

if __name__ == "__main__":
    import bug
    print "Infinity is", bug.infinity

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

This code behaves correct using bug.py - when bug.pyc
is not up to date / not exists:

 Infinity is 1.#INF

and behaves wrong using bug.pyc - when bug.pyc is up to
date:

 Infinity is 1.0



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

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


More information about the Python-bugs-list mailing list