[Tutor] True and 1 [was Re: use of the newer dict types]
Don Jennings
dfjennings at gmail.com
Sun Jul 28 14:03:20 CEST 2013
On Jul 27, 2013, at 10:31 PM, Steven D'Aprano wrote:
> On 28/07/13 05:29, Jim Mooney wrote:
>> 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.
>
> Don's explanation is mistaken.
Thanks for the correction. I learn so much more when I'm wrong :>)
Take care,
Don
More information about the Tutor
mailing list