William Heymann <[EMAIL PROTECTED]> writes:

> On Saturday 03 March 2007, Ben Finney wrote:
> > Bjoern Schliessmann <[EMAIL PROTECTED]> writes:
> >
> >     if not recs.has_key(piid):      # [1]
> >
> Why not
>
> if piid not in recs:
>
> That is shorter, simpler, easier to read and very slightly faster.
Perhaps if I'd made my posting shorter, simpler, easier to read and
slightly faster, you might have read the footnote to which the '[1]'
referred.

-- 
 \            "Choose mnemonic identifiers. If you can't remember what |
  `\             mnemonic means, you've got a problem."  -- Larry Wall |
_o__)                                                                  |
Ben Finney

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to