Re: Way for see if dict has a key
- From: Fredrik Lundh <fredrik@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 17:03:34 +0200
Bruno Desthuilliers wrote:
>> try/getitem construct when the key is present in the dict,on my machine, "key in dict" is about twice as fast as the full
Doesn't it depends on the number of keys in the dict ?
why would it depend on the number of keys in the dict ?
</F>
.
- Follow-Ups:
- Re: Way for see if dict has a key
- From: Bruno Desthuilliers
- Re: Way for see if dict has a key
- References:
- Way for see if dict has a key
- From: Michele Petrazzo
- Re: Way for see if dict has a key
- From: Bruno Desthuilliers
- Re: Way for see if dict has a key
- From: Michele Petrazzo
- Re: Way for see if dict has a key
- From: André
- Re: Way for see if dict has a key
- From: Fredrik Lundh
- Re: Way for see if dict has a key
- From: Bruno Desthuilliers
- Way for see if dict has a key
- Prev by Date: Re: Chapter 9 Tutorial for Classes Not Working
- 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):