Table of Contents
Foreword by Doug Hellmann
Introduction
Acknowledgements
Chapter 1. Creational Design Patterns
Abstract Factory Pattern
A Classic Abstract Factory
A More Pythonic Abstract Factory
Builder Pattern
Factory Method Pattern
Prototype Pattern
Singleton Pattern
Chapter 2. Structural Design Patterns
Adapter Pattern
Bridge Pattern
Composite Pattern
A Classic Composite/Noncomposite Hierarchy
A Single Class for (Non)Composites
Decorator Pattern
Function and Method Decorators
Class Decorators
Facade Pattern
Flyweight Pattern
Proxy Pattern
Chapter 3. Behavioral Design Patterns
Chain of Responsibility Pattern
A Conventional Chain
A Coroutine-based Chain
Command Pattern
Interpreter Pattern
Expression Evaluation with eval()
Code Evaluation with exec()
Code Evaluation using a Subprocess
Iterator Pattern
Sequence Protocol Iterators
Two-argument iter() Function Iterators
Iterator Protocol Iterators
Mediator Pattern
A Conventional Mediator
A Coroutine-based Mediator
Memento Pattern
Observer Pattern
State Pattern
Using State-Sensitive Methods
Using State-Specific Methods
Strategy Pattern
Template Method Pattern
Visitor Pattern
Case Study: An Image Package
Chapter 4. High-Level Concurrency
CPU-bound Concurrency
Using Queues and Multiprocessing
Using Futures and Multiprocessing
I/O-bound Concurrency
Using Queues and Threading
Using Futures and Threading
Case Study: A Concurrent GUI Application
Chapter 5. Extending Python
Accessing C Libraries with ctypes
Using Cython
Accessing c Libraries with Cython
Writing Cython Modules for Greater Speed
Case Study: An Accelerated Image Package
Chapter 6. High-Level Networking
Writing XML-RPC Applications
A Data Wrapper
Writing XML-RPC Servers
Writing XML-RPC Clients
Writing RPyC Applications
A Thread-Safe Data Wrapper
Writing RPyC Servers
Writing RPyC Clients
Chapter 7. Graphical User Interfaces with Tkinter
Introduction to Tkinter
Creating Dialogs with Tkinter
Creating a Dialog-style Application
Creating Application Dialogs
Creating Main Window Applications with Tkinter
Creating a Main Window
Creating Menus
Creating a Status Bar with Indicators
Chapter 8. OpenGL 3D Graphics
A Perspective Scene
Creating a Cylinder with PyOpenGL
Creating a Cylinder with pyglet
An Orthographic Game
Drawing the Board Scene
Handling Scene Object Selection
Handling User Interaction
Appendix A: Epilogue
Appendix B: Selected Bibliograpy
Index
· · · · · · (
收起)
2 有用 愛飛翔 2014-08-04 20:12:11
我讀過一遍,也試驗過其中一些代碼,對於我這種「學究式Python愛好者」來說,這書蠻好……
0 有用 李鼎 2014-08-17 14:02:14
对深入主题的不错组织。
0 有用 锅脐儿 2016-12-28 13:18:55
啃得慢