diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-12-19 21:40:04 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-12-19 21:40:04 (GMT) |
commit | b6ab93f433c37279a5ad12ac8e6d5b7d78d773ed (patch) | |
tree | 9713fb0e42e2f8c1e6d302c284d4bfa31a9d36a3 | |
parent | 4ebde092a5b5944514437ae2f8a3400f86574bb2 (diff) | |
download | cpython-b6ab93f433c37279a5ad12ac8e6d5b7d78d773ed.zip cpython-b6ab93f433c37279a5ad12ac8e6d5b7d78d773ed.tar.gz cpython-b6ab93f433c37279a5ad12ac8e6d5b7d78d773ed.tar.bz2 |
partial merge with current pythonware codebase:
- use repr instead of implied str for doubles
- updated version number to 1.0.0 (for 2.2 final)
-rw-r--r-- | Lib/xmlrpclib.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index f5955cf..78bdd6f 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -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): |