PDA

View Full Version : In search of Python Design Patterns (snippets and samples)



COMTIBoy
February 4th, 2009, 12:11 PM
Hi Everyone,

Does anyone know of any good books or websites that give examples in Python for gof design patterns (and others)?

I'm learning Python (brand new) and one way for me to come up to speed quickly is to see the language as its used implementing the various patterns.

For example, the site below is specific to c# (and vb.net), but I like how they show the pattern and give an example using c#

http://www.dofactory.com/Patterns/Patterns.aspx


I'd love to see something like this for Python but can't find anything.

I did see this book on Amazon: ( http://www.amazon.com/Python-Programming-Patterns-Thomas-Christopher/dp/0130409561/ref=sr_1_1?ie=UTF8&s=books&qid=1233744003&sr=1-1 )

...and may end up getting this (although the reviews don't seem very promising.

Thanks

COMTIBoy
February 4th, 2009, 12:56 PM
This doesn't seem bad:

http://linux.softpedia.com/progDownload/Python-3-Patterns---Idioms-Download-42694.html

Downloaded it now and checking it out.

Still would like to get a few opinions though. :)

Tony Flury
February 4th, 2009, 03:01 PM
Try here :

http://code.activestate.com/recipes/langs/python/

Example code (or recipes) in python.

Paul Miller
February 5th, 2009, 03:51 AM
I recommend this talk (http://www.youtube.com/watch?v=0vJJlVBVTFg) by Alex Martelli (link goes to youtube video of the talk).