[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


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



More information about the Python-Dev mailing list