relational/boolean operator overloading

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Mar 20 00:08:46 EST 2001


Renzo Tomaselli wrote:
> 
> The missing part is about overloading 'and'/'or' operators

That's impossible at present, and is not easy to fix. The
compiler treats these specially to implement short-circuiting.

I have some ideas on how to address this, and I might write
a PEP on it one day. 

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list