On Thu, Apr 30, 2009 at 6:38 AM, Steve Borho <steve at borho.org> wrote: > + if choices is None or r in [resp for (resp, name) in choices]: Isn't it easier to do: if not choices or r in dict(choices): -- Alexander