Python 3 Patterns, Recipes and Idioms¶
- Contributors
- ToDo List
- The remainder are from context, from the book.
- A Note To Readers
- Introduction
- Teaching Support
- Book Development Rules
- Developer Guide
- Part I: Foundations
- Python for Programmers
- Initialization and Cleanup
- Unit Testing & Test-Driven Development
- Python 3 Language Changes
- Decorators
- Decorators vs. the Decorator Pattern
- History of Macros
- The Goal of Macros
- What Can You Do With Decorators?
- Function Decorators
- Slightly More Useful
- Using Functions as Decorators
- Review: Decorators without Arguments
- Decorators with Arguments
- Decorator Functions with Decorator Arguments
- Further Reading
- Metaprogramming
- Generators, Iterators, and Itertools
- Comprehensions
- Coroutines, Concurrency & Distributed Systems
- Jython
- Part II: Idioms
- Discovering the Details About Your Platform
- A Canonical Form for Command-Line Programs
- Messenger/Data Transfer Object
- Part III: Patterns
- The Pattern Concept
- The Singleton
- Building Application Frameworks
- Fronting for an Implementation
- StateMachine
- Decorator: Dynamic Type Selection
- Iterators: Decoupling Algorithms from Containers
- Factory: Encapsulating Object Creation
- Function Objects
- Changing the Interface
- Table-Driven Code: Configuration Flexibility
- Observer
- Multiple Dispatching
- Visitor
- Pattern Refactoring
- Projects