Python paradigms

Oleg Broytmann phd at phd.russ.ru
Mon Apr 10 04:00:03 EDT 2000


On Mon, 10 Apr 2000, Robert W. Cunningham wrote:

> Oleg Broytmann wrote:
> > > python's "and" and "or" operators doesn't evaluate the
> > > second argument unless they really have to...
> >
> >    Yes, I missed that, sorry.
> 
> So, it works just fine, right?

   No. Code is intended not only to beeing run on processor, but also (and
often more important) to beeing read by human. Code is speech, it is the
way to interchange ideas.
   In that sense ugly code is not working even if you add three books of
comments. Code should be readable. Period.

Oleg.
---- 
    Oleg Broytmann    http://members.xoom.com/phd2.1/    phd2 at earthling.net
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list