Code basics

Jeff Pinyan jeffp at
Fri Mar 17 19:53:17 CET 2000

On Mar 17, Alex said:

>FWIW, I don't like it, myself.  It relies on the fact that the
>comparison returns 0 or 1 for true or false, resp.  Because that's
>relatively obscure, and unrelated to what the code is trying to do, it
>meant the intent of the code wasn't immediately obvious.

Why should the return value of a logic test be "obscure" knowledge?  Why
"hide" something so basic?

MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy at        
PerlMonth - An Online Perl Magazine  
The Perl Archive - Articles, Forums, etc.

More information about the Python-list mailing list