Re: Way for see if dict has a key
- From: aleax@xxxxxxx (Alex Martelli)
- Date: Fri, 30 Jun 2006 08:32:42 -0700
Fredrik Lundh <fredrik@xxxxxxxxxxxxxx> wrote:
Michele Petrazzo wrote:
what the preferred way for see if the dict has a key?
We have a lot of solutions:
key in dict
new syntax (2.3 and later).
Fine with Python 2.2 as well, actually -- so, "new" only in an
_extremely_ loose sense of the word:-).
Alex
.
- References:
- Way for see if dict has a key
- From: Michele Petrazzo
- Re: Way for see if dict has a key
- From: Fredrik Lundh
- Way for see if dict has a key
- Prev by Date: Re: Way for see if dict has a key
- Next by Date: Re: Chapter 9 Tutorial for Classes Not Working
- Previous by thread: Re: Way for see if dict has a key
- Next by thread: Re: Way for see if dict has a key
- Index(es):