Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 1.86 KB

index.rst

File metadata and controls

81 lines (59 loc) · 1.86 KB

Python Patterns

Welcome!

It’s time for me to start writing up, in one place, my ideas about Python programming patterns that are currently scattered across all of my Python conference talks and writing.

One reason is that, after all of these years, my Python Design Patterns talk from 2012 is still one of my most popular — despite conference video problems that forced me to cut 20 minutes of material! Another is that written material is easier for other programmers to search, browse, and reference, and can be corrected and improved as time goes on.

Inspired by the schedule that Doug Hellmann maintains on his famous Python Module of the Week site, I am going to try writing up one design pattern each week. You can watch for links to new material on my Twitter account:

@brandon_rhodes

And with those preliminaries complete, here we go!

Python-Specific Patterns

.. toctree::
   :maxdepth: 2

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

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

Structural Patterns

.. toctree::
   :maxdepth: 2

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

Behavioral Patterns

.. toctree::
   :maxdepth: 2

   gang-of-four/iterator/index

Bibliography

.. toctree::
   :maxdepth: 2

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