Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

>>> x = decimal.Decimal('9999999999999.11111111111111')
>>> c.dumps(x,), 'whatever')
"<?xml 
version='1.0'?>\n<methodCall>\n<methodName>whatever</methodName>\n<params>\n<param>\n<value><double>9999999999999.11111111111111</double></value>\n</param>\n</params>\n</methodCall>\n"

That's what I though you meant and I don't think it is wise.  The RPC spec is 
all about interoperability.  The <double> tag means "double-precision signed 
floating point number" so what you're proposing an implicit type conversion 
(i.e. the client sends a decimal and the server receives a float).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to