[Python-checkins] CVS: python/dist/src/Objects floatobject.c,2.81,2.82

Tim Peters tim_one@users.sourceforge.net
Tue, 08 May 2001 08:19:59 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv5500/python/dist/src/Objects

Modified Files:
	floatobject.c 
Log Message:
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.


Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.81
retrieving revision 2.82
diff -C2 -r2.81 -r2.82
*** floatobject.c	2001/03/11 08:37:29	2.81
--- floatobject.c	2001/05/08 15:19:57	2.82
***************
*** 312,315 ****
--- 312,321 ----
  }
  
+ void
+ PyFloat_AsReprString(char *buf, PyFloatObject *v)
+ {
+ 	PyFloat_AsStringEx(buf, v, PREC_REPR);
+ }
+ 
  /* ARGSUSED */
  static int