]> granicus.if.org Git - python/commitdiff
partial merge with current pythonware codebase:
authorFredrik Lundh <fredrik@pythonware.com>
Wed, 19 Dec 2001 21:40:04 +0000 (21:40 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Wed, 19 Dec 2001 21:40:04 +0000 (21:40 +0000)
- use repr instead of implied str for doubles
- updated version number to 1.0.0 (for 2.2 final)

Lib/xmlrpclib.py

index f5955cf2acb5bc1820a8030f8daf2f5bfa9ad2f3..78bdd6ff157eaf831a379e43b07418f5f04b9fde 100644 (file)
@@ -35,6 +35,7 @@
 # 2001-10-01 fl  Use faster escape method (80% dumps speedup)
 # 2001-10-10 sm  Allow long ints to be passed as ints if they don't overflow
 # 2001-10-17 sm  test for int and long overflow (allows use on 64-bit systems)
+# 2001-11-12 fl  Use repr() to marshal doubles (from Paul Felix)
 #
 # Copyright (c) 1999-2001 by Secret Labs AB.
 # Copyright (c) 1999-2001 by Fredrik Lundh.
@@ -72,7 +73,7 @@
 # --------------------------------------------------------------------
 
 #
-# things to look into before 1.0 final:
+# things to look into:
 
 # TODO: support basic authentication (see robin's patch)
 # TODO: fix host tuple handling in the server constructor
@@ -159,7 +160,7 @@ else:
     def _stringify(string):
         return string
 
-__version__ = "1.0b4"
+__version__ = "1.0.0"
 
 # --------------------------------------------------------------------
 # Exceptions
@@ -480,7 +481,7 @@ class Marshaller:
     dispatch[LongType] = dump_long
 
     def dump_double(self, value):
-        self.write("<value><double>%s</double></value>\n" % value)
+        self.write("<value><double>%s</double></value>\n" % repr(value))
     dispatch[FloatType] = dump_double
 
     def dump_string(self, value, escape=escape):