News for hackers. Stuff that matters.

Where is excellent Python code?

I'm a self taught programmer looking to see what others consider very good looking code. I want good style, so I'm looking for others to emulate. Are there any packages out there that come to mind? Why?
( 9 comments | 23 points | on HN )
Re:Where is excellent Python code? by ORioN63 on Friday April 06, 2012 @01:40PM (#3808103)
Python Standard Library is well written, if you want to have a look at it.(Decimal is easy and full of programming examples).

And:

http://news.ycombinator.com/item?id=327710

http://news.ycombinator.com/item?id=599994

Re:Where is excellent Python code? by easonchan42 on Friday April 06, 2012 @04:44PM (#3808848)
Requests: HTTP for Humans

Lovely code and good documentation

https://github.com/kennethreitz/requests

Also checkout the Hitchhiker's Guide to Python

http://docs.python-guide.org/en/latest/index.html

Re:Where is excellent Python code? by easonchan42 on Sunday April 08, 2012 @08:08AM (#3813656)
Doug hellmann's awesome Python Module of the Week series (http://www.doughellmann.com/PyMOTW/)
Re:Where is excellent Python code? by bmelton on Friday April 06, 2012 @02:06PM (#3808210)
Django[1] source is lovely, and they're pretty rigid about PEP rules, so it's a stellar example.

Flask[2] source code is also lovely.

[1] - https://github.com/django/django

[2] - https://github.com/mitsuhiko/flask

Re:Where is excellent Python code? by jmasonherr on Friday April 06, 2012 @01:38PM (#3808091)
What about BeautifulSoup? It stands out to me as extremely usable and friendly. Any comments on how it looks under the hood?
Re:Where is excellent Python code? by trope on Tuesday April 10, 2012 @11:34PM (#3825793)
Not a comment about under the hood, but, BeautifulSoup's use of CamelCase in module names and the fact that it's a parser for the ugliest shit out there (HTML) makes me believe the code is more soup than beautiful.
Re:Where is excellent Python code? by kracekumar on Monday April 09, 2012 @02:02AM (#3815984)
Re:Where is excellent Python code? by plw on Friday April 06, 2012 @01:32PM (#3808068)
I guess built-in libraries may be a good start.
Re:Where is excellent Python code? by jmasonherr on Friday April 06, 2012 @01:45PM (#3808125)
Thank you both!