-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmlrpclib doesn't support 64bit integer replies #47234
Comments
When querying a XML-RPC server that returns a 64 bit integer, the python When running with verbose=True the response is still intact, the library Example response: |
I attached a patch that seems to fix the problem, needs proper testing |
which implementations do support those 64 bit integers? |
I ran into 64bit integer responses with rtorrent's XML-RPC API. |
Thanks, fixed in r63782. |
I think it's also a bug that xmlrpclib just ignores unknown tags and: wouldn't it be nice if we could also write back those integers? >>> import xmlrpclib
>>> xmlrpclib.dumps((2**40,))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ralf/pydev/trunk/Lib/xmlrpclib.py", line 1126, in dumps
data = m.dumps(params)
File "/home/ralf/pydev/trunk/Lib/xmlrpclib.py", line 671, in dumps
dump(v, write)
File "/home/ralf/pydev/trunk/Lib/xmlrpclib.py", line 693, in __dump
f(self, value, write)
File "/home/ralf/pydev/trunk/Lib/xmlrpclib.py", line 704, in dump_int
raise OverflowError, "int exceeds XML-RPC limits"
OverflowError: int exceeds XML-RPC limits I asked about the implementations supporting this as this i8 tag does |
The I8 tag is an extension by xmlrpc-c: |
As long as long integers aren't in the official spec, the current status |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: