[Python-Dev] ANN: PEP 335: Overloadable Boolean Operators

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Sep 15 03:54:51 CEST 2004


exarkun at divmod.com:

> Python's parser is already available, through the compiler module.
> The example given earlier, query("x and y or z"), is relatively
> straightforward to implement as a set of AST manipulations.

But that misses the point, which is to have the expression
blend in seamlessly with the rest of the Python code. Anything
which requires the explicit invocation of a separate parsing
phase prevents that.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list