Re: Why doesn't xmlrpclib.dumps just dump an empty value instead of ?

2008-03-17 Thread martin f krafft
also sprach martin f krafft <[EMAIL PROTECTED]> [2008.03.16.1421 +0100]: > Why doesn't it just yield > > '\n\n\n\n' > > Or even just > > '\n\n\n' There's a difference between those two. The first one has an empty string value (&#x

Why doesn't xmlrpclib.dumps just dump an empty value instead of ?

2008-03-16 Thread martin f krafft
Hi, xmlrpclib.dumps((None,), allow_none=True) yields '\n\n\n\n' Why doesn't it just yield '\n\n\n\n' Or even just '\n\n\n' Those are valid XML and valid XML-RPC, but isn't. Thanks for any thoughts... -- martin | http://madduck.net/ | http://two.sentenc.es/ a farmer is a man outst

netlink messages

2007-06-11 Thread martin f krafft
Dear list, I am writing a daemon in Python that listens on AF_NETLINK and processes RTM_NETLINK messages. FWIW, code is below since there is hardly any reference on the net yet. As you can see from the code, the NETLINK message is all binary/hex. Before I go about wrapping it in a Python class, I