This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients loewis, serhiy.storchaka, terry.reedy
Date 2016-07-01.22:00:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467410450.16.0.272580871316.issue26885@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for your review Terry.

You can pass an integer in range from -2147483648 to 2147483647, and it is marshalled using the <int> tag. But when you receive tags <i1>, <i2>, etc, they are unmarshalled to integer values, and these values can be out of range from -2147483648 to 2147483647. How to document all these detail in short?

The same is with other types. xmlrpclib is more conservative with data that it sends than with data that it receives. float is marshalled using the <double> flag, but the <float> tag is unmarshalled to float too. None and datetime can be marshalled only if corresponding option is enabled, but always can be unmarshalled. Decimal can't be marshalled, but can be unmarshalled.

For now unmarshalling None is supported from the <nil> tag (this is unofficial extension). But Apache XML-RPC server produces tags with namespace: <ex:nil>, which is not supported in xmplrpclib. The patch adds the support of tags with namespaces, and therefore adds the support of unmarshalling None in Apache XML-RPC server format.
History
Date User Action Args
2016-07-01 22:00:50serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, terry.reedy
2016-07-01 22:00:50serhiy.storchakasetmessageid: <1467410450.16.0.272580871316.issue26885@psf.upfronthosting.co.za>
2016-07-01 22:00:50serhiy.storchakalinkissue26885 messages
2016-07-01 22:00:49serhiy.storchakacreate