On 2/13/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > 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 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. Or at least I suspect; Martin can tell me I'm wrong if I am. -Brett
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4