[socal-piggies] A good project to look at?

Daniel Greenfeld pydanny at gmail.com
Sat Jun 18 10:18:41 PDT 2011


I'm going to have to dispute inspecting Python standard library code
as a way to learn good Python forms. In fact, my dispute is shared by
a number of people on that convore thread.

The problem with the standard library, especially in the 2.x series is
that there are large components of it that don't follow PEP8, or any
standard, or are designed 'oddly'. They were included because years
ago Guido and the community were not quite as particular as to what
got into Python core. This has been greatly addressed in Python 3, and
one could say is one of the driving reasons for that project.

In any case, if I were going to recommend good code examples, I would go with:

Kenneth Reitz' requests library for solid design and good code
quality. And unlike the stdlib's urllib and urllib2 libraries, it is
meant for humans. :D

https://github.com/kennethreitz/requests

I also like some of the inner workings of Evite's Nudge library:

https://github.com/evite/nudge

I'll list more if I can think of them.

Danny


On Sat, Jun 18, 2011 at 9:12 AM, Jathan McCollum <jathan at gmail.com> wrote:
> Someone on that Convore thread suggested that you inspect the code from
> Python's standard library. I second that. If you haven't done so already,
> you can do so knowing that only the best code makes it's way in there!
>
> jathan.
> On Jun 17, 2011, at 17:05, Paul Hildebrandt <paul_hildebrandt at yahoo.com>
> wrote:
>
> There is a convore thread talking all about this subject:
> https://convore.com/python/examples-of-good-python-code/
>
>
> On 06/17/2011 04:54 PM, Michael Chean wrote:
>
> At one point in the "Learn Python the Hard Way" the author suggests looking
> at an open source project.  Any suggestions
> for a reasonable sized project which uses good Python form?
> Also very much liked the discussion on your favorite libs.
> Mike
>
> _______________________________________________
> socal-piggies mailing list
> socal-piggies at lists.idyll.org
> http://lists.idyll.org/listinfo/socal-piggies
>
> _______________________________________________
> socal-piggies mailing list
> socal-piggies at lists.idyll.org
> http://lists.idyll.org/listinfo/socal-piggies
>
>



-- 
'Knowledge is Power'
Daniel Greenfeld
http://pydanny.com
http://cartwheelweb.com



More information about the socal-piggies mailing list