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

Jim Mooney cybervigilante at gmail.com
Sat Jul 27 21:47:05 CEST 2013


On 27 July 2013 12:29, Jim Mooney <cybervigilante at gmail.com> wrote:
> On 27 July 2013 12:14, Don Jennings <dfjennings at gmail.com> wrote:

Okay, I see it now:

>>> bool([[]]) == bool([])
False
>>> bool([[]])
True
>>> bool([])
False
>>>

Those bool types are handy for resolving confusion. I totally forgot them.

Jim


More information about the Tutor mailing list