Message242949
| Author |
serhiy.storchaka |
| Recipients |
Ramchandra Apte, alexandre.vassalotti, pitrou, sbt, serhiy.storchaka, terry.reedy, vajrasky, vstinner |
| Date |
2015年05月12日.09:17:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1431422263.94.0.0239375468438.issue13566@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Proposed patch pickles all ascii strings with protocols < 3 and fix_import=True with compatible opcodes (STRING, BINSTRING and SHORT_BINSTRING). Pickled strings are unpickled as str in Python 2 and Python 3 (unless encoding="bytes").
As a side effect, short ascii strings (length < 256) are pickled more compact with protocols < 3. |
|