Proto-PEP: Overloadable Boolean Operators

Greg Ewing greg at
Tue Sep 7 06:37:18 CEST 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

More information about the Python-list mailing list