Names changed to protect the guilty

hanumizzle hanumizzle at gmail.com
Sat Oct 7 04:24:07 CEST 2006


On 6 Oct 2006 16:27:51 -0700, Aahz <aahz at pythoncraft.com> wrote:
> The following line of lightly munged code was found in a publicly
> available Python library...
>
>     if schema.elements.has_key(key) is False:

if not schema.elements.has_key(key): or, actually, if not key in
schema.elements: is how I would write it, but this reads more like
English.

-- Theerasak



More information about the Python-list mailing list