[Openstack] Python Design Patterns in OpenStack

Dustin J. Mitchell dustin at mozilla.com
Thu Feb 27 13:38:47 UTC 2014


----- Original Message -----
> Hi, guys:
> I am learning Python and Design Patterns, I want to know how Design Patterns
> can be used in real world project especially python project.
> 
> I know OpenStack is developed using python. So is there some materials of
> Design Patterns used in OpenStack?

Design patterns tend to be fairly abstract concepts, and become part of the general design of a project, rather than being documented explicitly.  So it may be more instructive for you to look for them yourself.

As an example, the way that managers are specified in the configuration files to change the behavior of services is an example of a pattern - which one?

You may also want to look at some smaller Python projects - perhaps discovered by shopping around the cheese shop - to see where they have or have not used patterns, and maybe even practice applying a pattern or two where you think it would improve the project.

Dustin




More information about the Openstack mailing list