售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Python Unlocked
Table of Contents
Python Unlocked
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Objects in Depth
Understanding objects
Identity
Value
Type
Making calls to objects
How objects are created
Creation of function objects
Creation of instances
Creation of class objects
Playing with attributes
Descriptors
Class, static, and instance methods
Summary
2. Namespaces and Classes
How referencing objects work – namespaces
Functions with state – closures
Understanding import and modules
Customizing imports
Class inheritance
Method resolution order
Super's superpowers
Using language protocols in classes
Iteration protocol
Context manager protocol
Using abstract classes
Summary
3. Functions and Utilities
Defining functions
Decorating callables
Utilities
Summary
4. Data Structures and Algorithms
Python built-in data structures
Python library data structures
Third party data structures
Arrays/List
Binary tree
Sorted containers
Trie
Algorithms on scale
Summary
5. Elegance with Design Patterns
Observer pattern
Strategy pattern
Singleton pattern
Template pattern
Adaptor pattern
Facade pattern
Flyweight pattern
Command pattern
Abstract factory
Registry pattern
State pattern
Summary
6. Test-Driven Development
Mock for tests
Parameterization
Creating custom test runners
Testing threaded applications
Running test cases in parallel
Summary
7. Optimization Techniques
Writing optimized code
Profiling to find bottlenecks
Using fast libraries
Using C speeds
SWIG
CFFI
Cython
Summary
8. Scaling Python
Going multithreaded
Using multiple processes
Going asynchronous
Scaling horizontally
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜