[Sugar-devel] [PATCH 1/2] Fix presence detection of keyboard layouts/options

Daniel Drake dsd at laptop.org
Thu Oct 6 13:22:16 EDT 2011


On Thu, Oct 6, 2011 at 6:13 PM, Frederick Grose <fgrose at gmail.com> wrote:
> But try this:
> foo = 0
> if foo:
>     print 'foo is not None'

Yes, I'm aware that the boolean operator also has meaning for
numerical values. But that doesn't affect my patch and the context of
this code. Or am I missing something?

Thanks,
Daniel


More information about the Sugar-devel mailing list