datetime.iterdate

Peter Hansen peter at engcorp.com
Mon Jul 12 15:01:58 CEST 2004


Robert Brewer wrote:
> Peter Hansen wrote:
>>Chances are good that the frequency of use of dict.update()
>>is _at least_ several orders of magnitude higher than the idiom
>>you refer to.

> Oh? Checking my current 21,000 line project...
> 
> dict.update() -> 13 occurrences
> iterdates equivalent-> 17 occurrences
> 
> One data point down...

I hardly think using your own project proves the general case...

If you think it does, let's look at my projects...  more than
one case of dict.update(), but *no* cases of iterdates
equivalents!

Combining this ratio with yours, we see that on average
dict.update() is infinitely more frequent than iterdates... ;-)

-Peter



More information about the Python-list mailing list