Message202346
tok->enc and tok->encoding should always have the same value, except that tok->enc gets set earlier.
tok->enc is used when parsing from strings, to remember what codec to use. For file based parsing, the codec object created knows what encoding to use; for string-based parsing, tok->enc stores the encoding.
If the code is to be simplified, unifying the cases of string-based parsing and file-based parsing might be a worthwhile goal. |
|
Date |
User |
Action |
Args |
2013-11-07 15:44:39 | loewis | set | recipients:
+ loewis, vstinner, benjamin.peterson, serhiy.storchaka |
2013-11-07 15:44:39 | loewis | set | messageid: <1383839079.21.0.924978731001.issue19519@psf.upfronthosting.co.za> |
2013-11-07 15:44:39 | loewis | link | issue19519 messages |
2013-11-07 15:44:38 | loewis | create | |
|