If you're a Python (or Ruby) dev, and this stuff is interesting to you, that's a symptom of a problem. The problem is that you haven't read this:<p><a href="http://norvig.com/design-patterns/" rel="nofollow">http://norvig.com/design-patterns/</a>
I'm really glad the article includes a warning against trying not to overuse design patterns. I sometimes wonder if teaching design patterns causes people to rely on pattern matching as a crutch, and hampers the development of creative thinking skills required to solve new engineering problems.
At the very bottom:<p>View document source. Generated on: 2003-02-28 11:59 UTC.<p>I was thinking I'd seen this before -- a long time ago. How much still applies?
These are patterns from the GoF book. Learning to use these patterns in Python is like learning Esperanto so you can pray. Python doesn't need these patterns any more than God needs you to speak Esperanto.
Interesting. I sort of assumed Python had singletons natively, because I'm so used to using them in Ruby.<p>This guy doesn't do it here, but you can make singletons relatively painless in Python by using decorators.