- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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 | brett.cannon |
|---|---|
| Recipients | barry, brett.cannon, christian.heimes, gvanrossum, jcea, skip.montanaro, vstinner |
| Date | 2008-11-21.18:24:51 |
| SpamBayes Score | 2.138168e-08 |
| Marked as misclassified | No |
| Message-id | <1227291893.05.0.782182206807.issue3799@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
So the use of pickle is not fair as that doesn't round-trip if you simply write out a file because py3k pickle doesn't like classic classes and the new-style classes want copy_reg which is not in existence in py3k since it was renamed. See pickle2write.py and pickle3read.py (which are version-agnostic; just following Skip's naming) for the pickle failing. Now if you skip that one use-case in the example of pickling a user-defined class then everything works out. I have attached a hacked-up version of Skip's scripts that take Unicode strings, encode them in Latin-1 and UTF-8, and then decode them on the other side in Py3K, all without issue. In other words I think my solution works and pickle is the trouble-maker in all of this. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-11-21 18:24:53 | brett.cannon | set | recipients: + brett.cannon, gvanrossum, skip.montanaro, barry, jcea, vstinner, christian.heimes |
| 2008-11-21 18:24:53 | brett.cannon | set | messageid: <1227291893.05.0.782182206807.issue3799@psf.upfronthosting.co.za> |
| 2008-11-21 18:24:52 | brett.cannon | link | issue3799 messages |
| 2008-11-21 18:24:51 | brett.cannon | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
