Python Books for 2002

Tim Peters tim_one at email.msn.com
Wed Apr 4 23:17:57 EDT 2001


[Tim Randolph, dreaming of future books]
> ...
> *Mastering Algorithms with Python* by Tim Peters.  The catch here
> is that it really should be in epistolatory form.  This is of course
> to give Tim two or three hundred more opportunities to come up with
> funny closing "ly yr's" lines.

I don't even have time for *that* anymore.  You can build your own book,
though, by digging thru the early days of the comp.lang.python archive, and
the mailing list before that.  Most examples of efficient algorithm design
in Python boil down to this handy recipe, suitable for printing on a
practical (yet attractive) wallet card:

1. Use dicts heavily, in the obvious but only appropriate ways.
2. If your approach to the problem doesn't involve dicts, throw
   out your approach, dream up another, and repeat step 2.
3. Go back to step 1.

ya-ok-so-it-doesn't-work-well-for-sorting-but-that's-why-sorting-is-
    built-in-ly y'rs  - tim





More information about the Python-list mailing list