[Python-Dev] Recent experience with the _ast module (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 14 03:28:18 CET 2007
- Previous message: [Python-Dev] Recent experience with the _ast module
- Next message: [Python-Dev] Recent experience with the _ast module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Brett Cannon wrote:
Because the AST code at the C level represent the 'op' value as basically an enumeration value, not a string. So creating an object is somewhat easier then trying to do the conversion to an interned string.
It would seem even easier (and a lot faster) to use an array to go from C enum --> some object, which could as well be an interned string as anything else.
-- Greg
- Previous message: [Python-Dev] Recent experience with the _ast module
- Next message: [Python-Dev] Recent experience with the _ast module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]