checking if a list is empty

David Robinow drobinow at gmail.com
Sat May 14 10:28:07 EDT 2011


On Fri, May 13, 2011 at 10:34 PM, Gregory Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> 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.
And Fortran could do it at least 25 years before Python was invented.



More information about the Python-list mailing list