[Tutor] Getting exposure to high quality Python code

Kent Johnson kent37 at tds.net
Wed May 27 21:04:00 CEST 2009


On Wed, May 27, 2009 at 1:57 PM, Daniel Brown
<endlessly.curious at gmail.com> wrote:

> Can anyone recommend any ways of getting exposed to high quality
> Python code?  Normally I would expect this to happen during code
> reviews but Python usage is not wide spread where I work.  So I need
> some alternative sources to help me develop my Python style...

You could lurk on comp.lang.python. The print Python Cookbook is an
excellent source of annotated, idiomatic Python code.

I'll also follow Alan's suggestion to look at the std lib and Django.
If you wonder "how does that work?" just take a look at the source
code and figure it out.

Kent


More information about the Tutor mailing list