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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to