checking if a list is empty

harrismh777 harrismh777 at charter.net
Sun May 15 21:25:44 EDT 2011


rusi wrote:
> But on further examination (with Leibniz law above) Dijkstra's 2<3 =
> True will work consistently in all contexts but [1,2,3] = True will
> work sometimes and fail sometimes.

It would have to be written 2<3 == True;  [1,2,3] == True;  otherwise,

...

+1 QOTW



More information about the Python-list mailing list