Re: Way for see if dict has a key
- From: "Fredrik Lundh" <fredrik@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 13:36:29 +0200
Michele Petrazzo wrote:
Michele Petrazzo wrote:
So, following it, it can be used for the operations like len?key in dictnew syntax (2.3 and later).
what's "it" in this sentence?
It, is the thought that the new 2.3 introduce.
support for "key in dictionary" form was added in 2.3 (in earlier versions,
"in" was only supported for sequences, not for mappings).
len(dictionary) works in all Python versions.
</F>
.
- References:
- Way for see if dict has a key
- From: Michele Petrazzo
- Re: Way for see if dict has a key
- From: Fredrik Lundh
- Re: Way for see if dict has a key
- From: Michele Petrazzo
- Re: Way for see if dict has a key
- From: Fredrik Lundh
- Re: Way for see if dict has a key
- From: Michele Petrazzo
- Way for see if dict has a key
- Prev by Date: Re: Way for see if dict has a key
- Next by Date: Re: Way for see if dict has a key
- 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):
Relevant Pages
|