The Hacker's Guide to Python (3rd Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 Python 基础语法、能独立写脚本,想进阶到工程化开发的人
- 需要维护长期演进的项目,正在被版本、文档、测试问题困扰的开发者
- 参与或准备参与 OpenStack 等大型开源项目的工程师
- 想了解 Python 打包分发、插件化架构与性能优化做法的技术负责人
Not a good fit for
- 完全没有编程基础、想从零学 Python 语法的读者
- 只想查标准库用法、寻找 API 速查手册的人
- 希望书里有大量完整商业级项目实战案例的读者
Reading tips
- 先通读第1到第7章,把项目结构、打包分发、虚拟环境的链条搭起来,这是全书的地基。
- 第8章单元测试与第12章性能优化最值得逐字精读,并对着自己现有的代码动手重写一遍。
- 第9至11章涉及装饰器、函数式编程与 AST,可先了解概念,遇到相关需求时再回来细读。
- 书中专家访谈部分可当补充读物,顺着访谈里提到的开源项目去读源码,收获会比预期大。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Chapter 1 Starting a Project
- 1.1 Python Versions
- 1.2 Project Layout
- 1.3 Version Numbering
- 1.4 Coding Style and Automated Checks
- Chapter 2 Modules and Libraries
- 2.1 The Import System
- 2.2 The Standard Library
- 2.3 External Libraries
- 2.4 Frameworks
- Chapter 3 Managing API Changes
- Chapter 4 Time Zone Pitfalls
- Chapter 5 Documentation
- 5.1 Getting Started with Sphinx and reST
- 5.2 Sphinx Modules
- 5.3 Extending Sphinx
- Chapter 6 Distribution
- 6.1 A Brief History
- 6.2 Packaging with pbr
- 6.3 The Wheel Format
- 6.4 Installing Packages
- 6.5 Sharing Your Work with the World
- 6.7 Entry Points
- Chapter 7 Virtual Environments
- Chapter 8 Unit Testing
- 8.1 Basics
- 8.2 Fixtures
- 8.3 Mocking
- 8.4 Scenario Testing
- 8.5 Test Sequences and Parallelism
- 8.6 Test Coverage
- 8.7 Using Virtual Environments and tox
- 8.8 Testing Strategy
- Chapter 9 Methods and Decorators
- 9.1 Creating Decorators
- 9.2 How Methods Work in Python
- Chapter 10 Functional Programming
- Chapter 11 Abstract Syntax Trees
- Chapter 12 Performance and Optimization
- Chapter 13 Extensions and Architecture
FAQ
这本书适合零基础学 Python 的人吗?
书名里的“高手”是指语法高手吗?
第3版和之前版本有什么区别?
书里为什么要讲 OpenStack?
读完能解决实际项目里的什么问题?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.