Message52362
It's not just the message attribute; the problem is
that the current code expects that the exception
won't be modified between creation and unpickling.
For example:
>>> import pickle
>>> e = EnvironmentError()
>>> e.filename = "x"
>>> new = pickle.dumps(pickle.loads(e))
>>> print new.filename
None
>>> e = SyntaxError()
>>> e.lineno = 10
>>> new = pickle.loads(pickle.dumps(e))
>>> print new.lineno
None
|
|
Date |
User |
Action |
Args |
2007-08-23 15:57:51 | admin | link | issue1692335 messages |
2007-08-23 15:57:51 | admin | create | |
|