Message111423
| Author |
vstinner |
| Recipients |
doerwalter, pitrou, vstinner |
| Date |
2010年07月24日.03:41:54 |
| SpamBayes Score |
0.019212872 |
| Marked as misclassified |
No |
| Message-id |
<1279942918.43.0.428714098467.issue6213@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Codecs are inconsistents: utf-32 has working getstate() / setstate() methods, whereas utf-8-sig and utf-16 don't (getstate() always return 0, setstate() does nothing).
> Simply moving py3ks getstate/setstate implementation
> over to 2.x might do the trick.
That's what my patch does :-) It just a copy/paste of Python3 code. It does fix #5006 tests (which are re-enabled by the patch). Using the patch, it's possible to save/restore utf-8-sig and utf-16 codecs state. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年07月24日 03:41:58 | vstinner | set | recipients:
+ vstinner, doerwalter, pitrou |
| 2010年07月24日 03:41:58 | vstinner | set | messageid: <1279942918.43.0.428714098467.issue6213@psf.upfronthosting.co.za> |
| 2010年07月24日 03:41:56 | vstinner | link | issue6213 messages |
| 2010年07月24日 03:41:56 | vstinner | create |
|