Message 52362 - Python tracker
Message52362
| Author | zseil |
|---|---|
| Recipients | |
| Date | 2007-08-12.12:34:47 |
| SpamBayes Score | |
| Marked as misclassified | |
| Message-id | |
| In-reply-to |
| Content | |
|---|---|
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 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007-08-23 15:57:51 | admin | link | issue1692335 messages |
| 2007-08-23 15:57:51 | admin | create | |