SF bug #422177: Results from .pyc differs from .py

Store floats and doubles to full precision in marshal.
Test that floats read from .pyc/.pyo closely match those read from .py.
Declare PyFloat_AsString() in floatobject header file.
Add new PyFloat_AsReprString() API function.
Document the functions declared in floatobject.h.
This commit is contained in:
Tim Peters 2001-05-08 15:19:57 +00:00
parent 569c09c013
commit 72f98e9b83
4 changed files with 35 additions and 9 deletions

View file

@ -13,6 +13,9 @@ except ImportError:
else:
raise TestFailed("import of RAnDoM should have failed (case mismatch)")
# Another brief digression to test the accuracy of manifest float constants.
import double_const # don't blink -- that *was* the test
sys.path.insert(0, os.curdir)
source = TESTFN + ".py"