checking if a list is empty
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri May 13 22:34:51 EDT 2011
rusi wrote:
> Dijkstra's problem (paraphrased) is that python, by choosing the
> FORTRAN alternative of having a non-first-class boolean type, hinders
> scientific/mathematical thinking/progress.
Python doesn't have the flaw that Dijkstra was talking about.
Fortran's flaw wasn't so much the lack of a boolean type, but
that you couldn't assign the result of a logical expression to
a variable. Python has always been able to do that, even before
it had a distinct boolean type.
--
Greg
More information about the Python-list
mailing list