Book Image

Mastering Python Design Patterns

By : Sakis Kasampalis
Book Image

Mastering Python Design Patterns

By: Sakis Kasampalis

Overview of this book

Table of Contents (23 chapters)
Mastering Python Design Patterns
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
The Factory Pattern
Index

A software example


The weakref module of Python contains a proxy() method that accepts an input object and returns a smart proxy to it. Weak references are the recommended way to add a reference counting support to an object [j.mp/wrefproxy].

ZeroMQ [j.mp/zermq] is a set of FOSS projects that focus on decentralized computing. The Python implementation of ZeroMQ has a proxy module that implements a remote proxy. This module allows Tornado [j.mp/pytornado] handlers to be run in separate remote processes [j.mp/pyzmq].