Learning Python Design
Patterns
A practical and fast-paced guide exploring
Python design patterns
Gennadiy Zlobin
BIRMINGHAM - MUMBAI
Learning Python Design Patterns
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2013
Production Reference: 1181113
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-337-8
www.packtpub.com
Cover Image by Aniket Sawant (aniket_sawant_photography@hotmail.com)
Credits
Author
Gennadiy Zlobin
Reviewers
David Corne
Kamilla Holanda Crozara
Sakis Kasampalis
Acquisition Editors
Kunal Parikh
Llewellyn Rozario
Commissioning Editor
Sruthi Kutty
Technical Editors
Vrinda Nitesh Bhosale
Rohit Kumar Singh
Copy Editors
Alisha Aranha
Sarang Chari
Janbal Dharmaraj
Dipti Kapadia
Gladson Monteiro
Karuna Narayanan
Project Coordinator
Suraj Bist
Proofreader
Simran Bhogal
Indexer
Hemangini Bari
Graphics
Abhinash Sahu
Production Coordinator
Nitesh Thakur
Cover Work
Nitesh Thakur
About the Author
Gennadiy Zlobin works as Lead Software Engineer and Technical Leader in the
Russian music service, Zvooq.ru. His current employer is Zvooq Ltd. He has been
using Python as the primary language for more than 4 years, enjoying its elegance and
power every day. His professional interests include high-load software architectures,
good engineering practices, Android OS, and natural language processing.
Previously, he worked for the company that had the rst search engine in Russia,
called Rambler. He was engaged in airline tickets' meta search service and Rambler's
index page.
I would like to thank my wife, Jane, for her patience and support.
I really appreciate it.
I am also grateful to my parents, Galina and Vitaliy for believing
in me. I love all of you.