Why doesn't xmlrpclib.dumps just dump an empty value instead of <nil/>?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Tue Mar 18 03:41:52 EDT 2008
On Mon, 17 Mar 2008 17:41:23 +0100, martin f krafft wrote:
> also sprach martin f krafft <madduck at madduck.net> [2008.03.16.1421 +0100]:
>> Why doesn't it just yield
>>
>> '<params>\n<param>\n<value/></param>\n</params>\n'
>>
>> Or even just
>>
>> '<params>\n<param/>\n</params>\n'
>
> There's a difference between those two. The first one has an empty
> string value ('') while the second one pretty clearly says that
> there is a parameter but has no value.
>
> Why <nil/>?
Because there is a difference between no value and the NULL value!?
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list