Welcome!
I’m Brandon Rhodes (website, Twitter) and this is my evolving guide to design patterns in the Python programming language.
- This site is letting me collect my ideas about Python and Design Patterns all in one place.
- My hope is that these pages make the patterns more discoverable — easier to find in web searches, and easier to read — than when they were scattered across the videos and slides of my Python conference talks.
- The weight of other obligations makes my progress intermittent. To check for new material, simply visit the commit history of this site’s project repository on GitHub, where you can also select “Watch” to get updates.
With those preliminaries complete, here are the patterns!
.. toctree:: :maxdepth: 2 gang-of-four/composition-over-inheritance/index
.. toctree:: :maxdepth: 2 python/module-globals/index python/prebound-methods/index python/sentinel-object/index
.. toctree:: :maxdepth: 2 gang-of-four/abstract-factory/index gang-of-four/builder/index gang-of-four/factory-method/index gang-of-four/prototype/index gang-of-four/singleton/index
.. toctree:: :maxdepth: 2 gang-of-four/composite/index gang-of-four/decorator-pattern/index gang-of-four/flyweight/index
.. toctree:: :maxdepth: 2 gang-of-four/iterator/index
.. toctree:: :maxdepth: 2 gang-of-four/index fowler-refactoring/index