datetime.iterdate
Robert Brewer
fumanchu at amor.org
Sun Jul 11 22:41:30 EDT 2004
Peter Hansen wrote:
> Robert Brewer wrote:
>
> > I understand and agree with your assessment in general; I
> obviously feel
> > this specific one is worthwhile--it's too common of an
> idiom (coupled
> > with extremely ugly syntax) to ignore. Makes you wonder why
> dict.update
> > ever got included... ;)
>
> 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...and before you reply "not every project uses
dates"--that's why it would go in the datetime module; I'm not
requesting a mod to a builtin.
Sheesh.
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the Python-list
mailing list