[Python-Dev] Tutorial: Brief Introduction to the Standard Library
Raymond Hettinger
python at rcn.com
Mon Dec 1 16:30:19 EST 2003
[Michael Chermside]
> So I'd say DO include a (brief!) tutorial example on using timeit. But
> perhaps craft the example so it shows two approaches, one readable
> and one obscure, and the obscure one is shown to be FASTER but not
> MUCH faster, and is therefore DROPPED in favor of the more readable.
> (Hey... rigging the problem set in order to model good practices is an
> old teacher's trick I've used often.)
Especially, in the tutorial, stacking the deck is fair play.
> And having piped up with my own 2c, I'd better pay up. Raymond... if
> you're working on this and need help, send me an example or two of
other
> modules (so I can try to follow your style) and I'll volunteer to
write
> one for timeit.
I expect to be able to wrap it up this weekend.
Raymond
More information about the Python-Dev
mailing list