Greg Ewing wrote:

>> if you're aware of a way to do that faster than the current marshal 
>> implementation, maybe you could work on speeding up marshal instead?
> 
> Even if it weren't faster than marshal, it could still
> be useful to have something nearly as fast that used
> a python-version-independent protocol.

marshal hasn't changed in many years:

$ python1.5
 >>> x = 1, 2.0, "three", [4, 5, 6, "seven"], {8: 9}, None
 >>> import marshal
 >>> marshal.dump(x, open("x.dat", "w"))
 >>>

$ python2.5
 >>> import marshal
 >>> marshal.load(open("x.dat"))
(1, 2.0, 'three', [4, 5, 6, 'seven'], {8: 9}, None)

which is a good thing, because there are external non-Python tools that 
generate marshalled data streams.

maybe you were thinking about marshalled code objects?

</F>

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to