[Python-3000] AST access (WAS: Adaptation vs. Generic Functions)

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 11 02:32:33 CEST 2006


Phillip J. Eby wrote:

> I tried doing something like this when I was writing RuleDispatch, and gave 
> up in disgust because there's no sane way to implement "and" and "or" 
> operations with this approach.  The bitwise operators (&, |, and ~) bind 
> too tightly to be used with comparison expressions,

Perhaps you'd like to lend your support to PEP 335, then?-)

   http://www.python.org/dev/peps/pep-0335/

> Maybe in Python 3K the backquote could be used to quote code in some way, 
> since we won't be using it for repr() anymore.  :)

I really hope something better could be found. Code in
backquotes doesn't look much less ugly than code in
normal quotes.

--
Greg


More information about the Python-3000 mailing list