The pythonic approach
aleaxit at yahoo.com
Wed Sep 15 19:32:48 CEST 2004
Peter Hansen <peter at engcorp.com> wrote:
> code pattern. (Even so, I would tend to include a doc-string
> or comment describing the basic algorithm, to let another
> programmer more easily comprehend the approach taken.)
That's never wrong, of course.
> Principle of least surprise. One rarely encounters .get(x, x)
Funny -- I encounter it SO often I consider it a basic idiom!!!
More information about the Python-list