[Python-Dev] Cloning threading.py using proccesses
Fredrik Lundh
fredrik at pythonware.com
Thu Oct 12 07:22:00 CEST 2006
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>
More information about the Python-Dev
mailing list