Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

Attached is an improved patch:

1. It's against the 3.2 branch, rather than default.
2. It has an added multiple load test in test_marshal.py.
3. There's more error checking for an EOF condition.
4. I've removed tab chars and used /* C89 comments */.

Of course it's not as fast as the 2.x version, since that had a limitation on 
only being able to load from file objects, and a fast path for PyFile using 
stdio calls directly. Hard to compete with that!

Suggestions for improvements gratefully received :-)

----------
keywords: +needs review
Added file: http://bugs.python.org/file22314/marshal-patch2.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to