Re: [Python-Dev] 64-bit values in XML RPC: OverflowError: int exceeds XML-RPC limits

2009-07-15 Thread Dirkjan Ochtman
On Wed, Jul 15, 2009 at 16:42, Peter Hanecak wrote: > So my subsequent question is: What can help me solve the "writing" part? The XML-RPC protocol, as specified at [1], doesn't support integers with more than 32 bits (in fact, the i4 alias can be used to make the use of 4 bytes explicit). So, eit

Re: [Python-Dev] 64-bit values in XML RPC: OverflowError: int exceeds XML-RPC limits

2009-07-15 Thread Tarek Ziadé
On Wed, Jul 15, 2009 at 4:42 PM, Peter Hanecak wrote: > Hello, > > thank you David and Benjamin for quick response. > > So my subsequent question is: What can help me solve the "writing" part? Use strings. Send str(0x7FFF) from the client for example , and get back your number on server side

Re: [Python-Dev] 64-bit values in XML RPC: OverflowError: int exceeds XML-RPC limits

2009-07-15 Thread Peter Hanecak
Hello, thank you David and Benjamin for quick response. So my subsequent question is: What can help me solve the "writing" part? Sincerely Peter On 07/15/2009 04:39 PM, R. David Murray wrote: On Wed, 15 Jul 2009 at 09:29, Benjamin Peterson wrote: 2009/7/15 Peter Hanecak : So, my question i

Re: [Python-Dev] 64-bit values in XML RPC: OverflowError: int exceeds XML-RPC limits

2009-07-15 Thread R. David Murray
On Wed, 15 Jul 2009 at 09:29, Benjamin Peterson wrote: 2009/7/15 Peter Hanecak : So, my question is: In which Python release has been this fix distributed? Python 2.6 and above. But it doesn't solve your problem, since the ticket says it only fixes reading long ints, not writing them. --Dav

Re: [Python-Dev] 64-bit values in XML RPC: OverflowError: int exceeds XML-RPC limits

2009-07-15 Thread Benjamin Peterson
2009/7/15 Peter Hanecak : > So, my question is: In which Python release has been this fix distributed? Python 2.6 and above. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

[Python-Dev] 64-bit values in XML RPC: OverflowError: int exceeds XML-RPC limits

2009-07-15 Thread Peter Hanecak
Hello, when I'm trying to use 64-bit integer values with SimpleXMLRPCServer, I'm getting "OverflowError: int exceeds XML-RPC limits" error each time I use an integer with value greater or equal to 2^31. I googled this: http://bugs.python.org/issue2985 So, my question is: In which P