Why doesn't xmlrpclib.dumps just dump an empty value instead of <nil/>?

martin f krafft madduck at madduck.net
Mon Mar 17 12:41:23 EDT 2008


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/>?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
all software projects are done by iterative prototyping.
some companies call their prototypes "releases", that's all.
 
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://mail.python.org/pipermail/python-list/attachments/20080317/ce33e8ed/attachment-0001.sig>


More information about the Python-list mailing list