On Jul 15, 5:44 pm, Mark Dickinson <dicki...@gmail.com> wrote:
> On Jul 15, 5:07 am, "Dr. Phillip M. Feldman" <pfeld...@verizon.net>
> wrote:

[snip]

> >    for arg in args:
> >       if bool(arg): result= not result
>
> It's more idiomatic to say "if arg: ..." rather than "if bool
> (arg): ...".
>

Ah yes, but not once conditional tests, (just like logical operators),
type-check to ensure they have been supplied with Boolean entities. ;)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to