Couple of Python Design Pattern Links

I’m a little relieved to learn that I know slightly more about design patterns than I initially thought. Still, there’s tons to learn, and I’ve been checking the O’Reilly “Upcoming Titles” list to see if “Design Patterns in Python” ever shows up, but I’m always disappointed (if you know of any such upcoming book, let me know!).

In the meantime, I was able to find a couple of decent links to resources covering DP in a Python context:

Alex Martelli gave a talk on Google Developer Day 2007, and the full, 45-minute video can be found here.

Ryan Ginstrom’s blog has a pretty gentle review of Python implementations of a few of the GoF originals. He doesn’t cover when each pattern is appropriate, but just reading the code and matching it up with a name is nice, because I have my own code that I can now talk to people about using that language.


  • Jason

    ‘Python Cookbook’ has design patterns that I have found very handy.

  • Alex Martelli

    That talk of mine was kind of a summary — I think I did a better jobs in the more extended talks at
    (same materials overall, but over twice the time to talk about it;-).

    I do give a few other talks on specific design patterns, but none appears to be on video at this time… if you like essays too, check out … anyway, I guess it’s my fault if a good book on Python design patterns is still missing, so I apologize — I’ve been wanting to write such a book for many years now, but reality keeps getting in the way — the need to write the Nutshell, the Cookbook, and in the last few years my fascinating job as Uber Tech Lead at Google, too. And now Python 3.0 is out so maybe I should be writing about THAT rather than about DP… shouldn’t I?!


  • John Hassler

    I have one (existing) book that claimed to be about design patterns, although I found it disappointing.

    “Python Programming Patterns,” by Thomas W. Christopher, Prentice-Hall (2002), ISBN 0-13-040956-1

    It’s largely a beginning Python book with some advanced topics. It has one (1) chapter that briefly discusses the common GOF patterns as they might be used in Python, and then references various examples throughout the book.