Message101487
| Author |
flox |
| Recipients |
effbot, flox, georg.brandl, gvanrossum, r.david.murray, scoder |
| Date |
2010年03月22日.08:53:58 |
| SpamBayes Score |
0.020283766 |
| Marked as misclassified |
No |
| Message-id |
<1269248041.28.0.775105811968.issue8047@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
http://codereview.appspot.com/664043 (patch against 3.x)
IIUC, the changes proposed (for 3.2) are:
- default encoding or bool(encoding) == False
==> fallback to 'US-ASCII' encoding (instead of Unicode)
- encoding=str or encoding='unicode'
==> serialize to Unicode
And it changes the behavior of :
- ET.write()
- tostring()
- tostringlist()
For 2.x we could add the options for Unicode output:
- encoding=unicode
- and encoding='unicode' |
|