Proto-PEP: Overloadable Boolean Operators

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Sep 7 00:37:18 EDT 2004


Alex Martelli wrote:
> Problem is, __nonzero__ is currently
> typechecked -- it has to return an integer.

Yes, that's the problem. I should probably elaborate
on that a bit in the PEP.

-- 
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