This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | alexandre.vassalotti |
|---|---|
| Recipients | alexandre.vassalotti, georg.brandl |
| Date | 2008年04月07日.21:51:26 |
| SpamBayes Score | 0.37685695 |
| Marked as misclassified | No |
| Message-id | <1207605087.98.0.523055395041.issue2572@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Python 3.0 shouldn't have any problem unpickling old-style classes. However, they will be unpickled as new-style classes. Therefore, there might be a few corner-cases that might cause some problems. For example, if an old-style class contains a __slots__: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) >>> import pickle >>> class A: ... __slots__ = [] ... >>> pickle.dumps(A()) '(i__main__\nA\np0\n(dp1\nb.' Python 3.0a3+ (py3k:62050M, Mar 30 2008, 17:29:33) >>> class A: ... __slots__ = [] ... >>> pickle.loads(b'(i__main__\nA\np0\n(dp1\nb.') Traceback (most recent call last): ... TypeError: __class__ assignment: '_EmptyClass' deallocator differs from 'A' |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年04月07日 21:51:28 | alexandre.vassalotti | set | spambayes_score: 0.376857 -> 0.37685695 recipients: + alexandre.vassalotti, georg.brandl |
| 2008年04月07日 21:51:28 | alexandre.vassalotti | set | spambayes_score: 0.376857 -> 0.376857 messageid: <1207605087.98.0.523055395041.issue2572@psf.upfronthosting.co.za> |
| 2008年04月07日 21:51:27 | alexandre.vassalotti | link | issue2572 messages |
| 2008年04月07日 21:51:26 | alexandre.vassalotti | create | |