Overriding logical operators?

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Aug 24 00:52:05 EDT 2004


Terry Reedy wrote:
> I think
> we need a special term in Python also, such as 'pseudo-op' or 'syntax
> operator' to flag 'and' and 'or' as importantly different from regular
> operators.

They're really control structures, like 'if' and 'while'.
The fact that they happen to look a bit like operators is
purely coincidental...

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list