Message343096
symtable is useful when combined with compile() to AST to understand what the names bind to. But symtable.symtable() doesn't accept a bytes object, while compile does. Ultimately these feed down to the same API, and could easily lead to subtle mismatches due to encodings.
The workaround seems to be to use the tokenize.detect_encoding to discover the encoding and then do the encoding from Python, but this seems wasteful. |
|
Date |
User |
Action |
Args |
2019-05-21 21:01:35 | dino.viehland | set | recipients:
+ dino.viehland |
2019-05-21 21:01:35 | dino.viehland | set | messageid: <1558472495.26.0.119384648617.issue37001@roundup.psfhosted.org> |
2019-05-21 21:01:35 | dino.viehland | link | issue37001 messages |
2019-05-21 21:01:35 | dino.viehland | create | |
|