do design patterns still apply with Python?

msoulier msoulier at
Fri Mar 3 15:03:13 CET 2006

Personally, I find many of the design patterns apply but require

For example, the Factory pattern is mostly to work around the fact that
it's difficult in Java and C++ to dynamically load classes. Not so in
Python, especially with exec. A simple configuration file and an exec
call can replace an entire Factory pattern, with the same result.

The ideas are fine, but sometimes it's best to keep things simple. I
find that DP junkies don't tend to keep things simple.

More information about the Python-list mailing list