更新时间:2021-07-16 10:58:24
coverpage
Expert Python Programming Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Current Status of Python
Where are we now and where we are going?
Why and how does Python change?
Getting up to date with changes – PEP documents
Python 3 adoption at the time of writing this book
The main differences between Python 3 and Python 2
Not only CPython
Modern approaches to Python development
Application-level isolation of Python environments
System-level environment isolation
Popular productivity tools
Useful resources
Summary
Chapter 2. Syntax Best Practices – below the Class Level
Python's built-in types
Advanced syntax
Other syntax elements you may not know yet
Chapter 3. Syntax Best Practices – above the Class Level
Subclassing built-in types
Accessing methods from superclasses
Advanced attribute access patterns
Metaprogramming
Chapter 4. Choosing Good Names
PEP 8 and naming best practices
Naming styles
The naming guide
Best practices for arguments
Class names
Module and package names
Useful tools
Chapter 5. Writing a Package
Creating a package
Namespace packages
Uploading a package
Standalone executables
Chapter 6. Deploying Code
The Twelve-Factor App
Deployment automation using Fabric
Your own package index or index mirror
Common conventions and practices
Code instrumentation and monitoring
Chapter 7. Python Extensions in Other Languages
Different language means – C or C++
Why you might want to use extensions
Writing extensions
Challenges
Interfacing with dynamic libraries without extensions
Chapter 8. Managing Code
Version control systems
Continuous development processes
Chapter 9. Documenting Your Project
The seven rules of technical writing
A reStructuredText primer
Building the documentation
Making your own portfolio
Chapter 10. Test-Driven Development
I don't test
I do test
Chapter 11. Optimization – General Principles and Profiling Techniques
The three rules of optimization
Optimization strategy
Finding bottlenecks
Chapter 12. Optimization – Some Powerful Techniques
Reducing the complexity
Simplifying
Using collections
Using architectural trade-offs
Caching
Chapter 13. Concurrency
Why concurrency?
Multithreading
Multiprocessing
Asynchronous programming
Chapter 14. Useful Design Patterns