3. Behavioral Design Patterns in Python
§3.1. Chain of Responsibility Pattern
§3.1.2. A Coroutine-Based Chain
§3.3.1. Expression Evaluation with eval()
§3.3.2. Code Evaluation with exec()
§3.3.3. Code Evaluation Using a Subprocess
§3.4.1. Sequence Protocol Iterators
§3.4.2. Two-Argument iter() Function Iterators
§3.4.3. Iterator Protocol Iterators
§3.5.1. A Conventional Mediator
§3.5.2. A Coroutine-Based Mediator
§3.8.1. Using State-Sensitive Methods
§3.8.2. Using State-Specific Methods
Get Python in Practice: Create Better Programs Using Concurrency, Libraries, and Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.