[Tutor] True and 1 [was Re: use of the newer dict types]

Jim Mooney cybervigilante at gmail.com
Sat Jul 27 21:29:41 CEST 2013


On 27 July 2013 12:14, Don Jennings <dfjennings at gmail.com> wrote:
>
> An empty list does evaluate to False, but a list which contains another list (even if the contained list happens to be empty) evaluates to True.

Now I'm really confused, since why am I getting this? (py3.3, since I
forgot to mention that)

>>> [[]] == True
False

Jim


More information about the Tutor mailing list