Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 2.07 KB

index.rst

File metadata and controls

87 lines (61 loc) · 2.07 KB

Python Design Patterns

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!

Gang of Four: Principles

.. toctree::
   :maxdepth: 2

   gang-of-four/composition-over-inheritance/index

Python-Specific Patterns

.. toctree::
   :maxdepth: 2

   python/module-globals/index
   python/prebound-methods/index
   python/sentinel-object/index

Gang of Four: Creational Patterns

.. 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

Gang of Four: Structural Patterns

.. toctree::
   :maxdepth: 2

   gang-of-four/composite/index
   gang-of-four/decorator-pattern/index
   gang-of-four/flyweight/index

Gang of Four: Behavioral Patterns

.. toctree::
   :maxdepth: 2

   gang-of-four/iterator/index

Bibliography

.. toctree::
   :maxdepth: 2

   gang-of-four/index
   fowler-refactoring/index