PEP-308 a "simplicity-first" alternative

David Eppstein eppstein at ics.uci.edu
Wed Feb 12 15:01:02 EST 2003


In article <un0l2pjay.fsf at dfan.org>, Dan Schmidt <dfan at dfan.org> wrote:

> I don't think I will ever fully get used to 'and' being of type
> 
>   (bool, T) -> T
> 
> rather than
> 
>   (bool, bool) -> bool
> 
> It just doesn't read naturally to me.

I, on the contrary, have gotten so used to it that I forgot that C's && 
behaves differently from Python's and, and had to go back and look at 
K&R to check that it really did.

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/




More information about the Python-list mailing list