Re: Examples of high-quality python code?



kaens wrote:
Hey everyone, I'm relatively new to python - I actually picked it up
to see how quickly I could start building non-trivial apps with it.

Needless to say, I was quite pleased.

Anyhow, I'm looking to expand my understanding of python, and I feel
that one of the best ways to do that is looking at other peoples code.

Unfortunately, I don't feel like I grok the python mindset quite well
enough to fully distinguish between awesome, average, and not-pythony
code, so I was hoping some of the more experienced python people could
point me to some (preferably FOSS) non-trivial apps written in python
that are examples of great python code.

I realize this may be a bit ambiguous - basically I don't want to go
randomly downloading other people's source and end up assimilating
techniques that aren't . . . well . . . pythonistic.

So, who wants to hook me up?

You should consider picking up a copy of Python Cookbook. Alex and
others have reviewed the code it contains and IMHO it is well written.

I've also learned quite a lot from:

Python on Win32 (book by Mark Hammond/Andy Robinson)
Reading source code to standard library
Reading ReportLab source (www.reportlab.org)
Reading PIL source (www.effbot.org)
Reading wxPython source (www.wxpython.org)
Monitoring this list on a daily basis

-Larry

.



Relevant Pages

  • Re: New Chair
    ... Python, they're all DragonBallZ rejects and watch manga or whatever it is. ... quote the skit nearly word for word in the parrot falsetto voice. ... in them days we'd have been glad to have the price of a cup of tea. ... Reading David Webers's In Fury Born, there's a nice take on the "in my ...
    (comp.sys.ibm.pc.games.action)
  • Re: Newbie completely confused
    ... Your program uses quite a bit of memory. ... And really, reading 30MB files should not be such a problem, right? ... 'del LINES' deletes the lines that are read from the file, but not all of your data structures that you created out of them. ... The python code loads a module written in C++ and some of the member variables actually point to C++ objects created dynamically, so one actually has to call their destructors before unbinding the python var. ...
    (comp.lang.python)
  • Re: Getting back to Angband and Oangband
    ... I have gotten the Angband itch again. ... O is still my second-favourite variant. ... Python in standalone binaries: I know there are tools for Windows, ... interesting reading - but OTOH a new game holds even more possibilities. ...
    (rec.games.roguelike.angband)
  • Re: Examples of high-quality python code?
    ... to see how quickly I could start building non-trivial apps with it. ... that one of the best ways to do that is looking at other peoples code. ... so I was hoping some of the more experienced python people could ... Reading ReportLab source ...
    (comp.lang.python)
  • Re: 2.6, 3.0, and truly independent intepreters
    ... The GIL makes Python ... language designers think the same way. ... Reading this PDF paper is extremely interesting (albeit somewhat dependent ... I have noted the multiprocessing module that is new to Python 2.6/3.0 being ...
    (comp.lang.python)