Message157099
| Author |
weirdink13 |
| Recipients |
mattchaput, weirdink13 |
| Date |
2012年03月29日.21:04:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333055077.78.0.739419534278.issue14447@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|