Daniel Swanson <popcorn.tomato.d...@gmail.com> added the comment: The previous test was on linux mint 10 (Julia) with python 3.1.2 here is the same test on windows XP with python 3.2.2
Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import marshal >>> f = open('t', 'wb') >>> marshal.dump(('skd', 1), f) 18 >>> marshal.dump(('slkd', 2), f) 19 >>> marshal.dump('lkdss', 3), f) SyntaxError: invalid syntax >>> marshal.dump(('lskda', 3), f) 20 >>> f.close() >>> f = open('t', 'rb') >>> print(marshal.load(f)) ('skd', 1) >>> print(marshal.load(f)) ('slkd', 2) >>> print(marshal.load(f)) ('lskda', 3) >>> print(marshal.load(f)) Traceback (most recent call last): File "<pyshell#11>", line 1, in <module> print(marshal.load(f)) EOFError: EOF read where object expected >>> As you can see, this problem appearently does not apply to 3.2.2 ---------- versions: -Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14447> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com