[Python-Dev] Recent experience with the _ast module

"Martin v. Löwis" martin at v.loewis.de
Wed Feb 14 09:44:07 CET 2007


Greg Ewing schrieb:
> Brett Cannon wrote:
>> On 2/12/07, Collin Winter <collinw at gmail.com> wrote:
>>> 2) {BinOp,AugAssign,BoolOp,etc}.op
>> I can't think of a reason, off the top of my head, why they can't be
>> singletons.
> 
> Why not just use interned strings?

Because it's generated code. It has to follow rules, and it would
be good if there were few exceptions.

Regards,
Martin


More information about the Python-Dev mailing list