Message28683
Logged In: YES
user_id=1326842
Oh, and another thing, unpickling exceptions
that were pickled with an older version
of Python will have strange effects:
Python 2.4.3 (#69, Mar 29 2006, 17:35:34)
...
>>> import pickle
>>> f = open('jar', 'wb')
>>> e = Exception('cucumbers', 'cabbage')
>>> e.args
('cucumbers', 'cabbage')
>>> pickle.dump(e, f)
>>> f.close()
>>> f = open('jar', 'rb')
>>> e = pickle.load(f)
>>> f.close()
>>> e.args
('cucumbers', 'cabbage')
Python 2.5a2 (trunk:46539M, May 30 2006, 05:02:24)
...
>>> import pickle
>>> f = open('jar', 'rb')
>>> e = pickle.load(f)
>>> f.close()
>>> e.args
()
>>> e.__dict__['args']
('cucumbers', 'cabbage')
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:40:19 | admin | link | issue1497319 messages |
| 2007-08-23 14:40:19 | admin | create | |
|