[Python-bugs-list] [ python-Bugs-467384 ] provide a documented serialization func
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 05 Oct 2001 17:10:53 -0700
Bugs item #467384, was opened at 2001-10-02 19:25
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467384&group_id=5470
Category: None
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: paul rubin (phr)
Assigned to: Nobody/Anonymous (nobody)
Summary: provide a documented serialization func
Initial Comment:
It would be nice if there was a documented library
function for serializing Python basic objects
(numbers, strings, dictionaries, and lists).
By documented I mean the protocol is specified in
the documentation, precisely enough to write
interoperating implementations in other languages.
Code-wise, the marshal.dumps and loads functions do
what I want, but their data format is (according to the
documentation) intentionally not specified, because
the format might change in future Python versions.
Maybe that doc was written long enough ago that it's
ok to freeze the marshal format now, and document it?
I just mean for the basic types listed above. Stuff
like code objects don't have to be specified. In
fact it would be nice if there was a flag to the
loads and dumps functions to refuse to marshal/
unmarshal those objects.
Pickle/cpickle aren't really appropriate for what I'm
asking, since they're complicated (they try to handle
class instances, circular structure, etc.) and anyway
they're not documented either.
The XDR library is sort of ok, but it's written in
Python (i.e. slow) and it doesn't automatically
handle compound objects.
Thanks
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-10-05 17:10
Message:
Logged In: YES
user_id=21627
So what's wrong with xmlrpclib?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467384&group_id=5470