Message157099
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 |
|
Date |
User |
Action |
Args |
2012-03-29 21:04:37 | weirdink13 | set | recipients:
+ weirdink13, mattchaput |
2012-03-29 21:04:37 | weirdink13 | set | messageid: <1333055077.78.0.739419534278.issue14447@psf.upfronthosting.co.za> |
2012-03-29 21:04:37 | weirdink13 | link | issue14447 messages |
2012-03-29 21:04:37 | weirdink13 | create | |
|