Book description
Useful in many roles, from design and prototyping to testing, deployment, and maintenance, Python is consistently ranked among today’s most popular programming languages. The third edition of this practical book provides a quick reference to the language—including Python 3.5, 2.7, and highlights of 3.6—commonly used areas of its vast standard library, and some of the most useful third-party modules and packages.
Ideal for programmers with some Python experience, and those coming to Python from other programming languages, this book covers a wide range of application areas, including web and network programming, XML handling, database interactions, and high-speed numeric computing. Discover how Python provides a unique mix of elegance, simplicity, practicality, and sheer power.
This edition covers:
- Python syntax, Object-Oriented Python, standard library modules, and third-party Python packages
- Python’s support for file and text operations, persistence and databases, concurrent execution, and numeric computations
- Networking basics, event-driven programming, and client-side network protocol modules
- Python extension modules, and tools for packaging and distributing extensions, modules, and applications
Publisher resources
Table of contents
- Preface
- 1. Introduction to Python
- 2. The Python Interpreter
- 3. The Python Language
- 4. Object-Oriented Python
- 5. Exceptions
- 6. Modules
- 7. Core Built-ins and Standard Library Modules
- 8. Strings and Things
- 9. Regular Expressions
-
10. File and Text Operations
- Other Chapters That Also Deal with Files
- Organization of This Chapter
- The io Module
- Auxiliary Modules for File I/O
- In-Memory “Files”: io.StringIO and io.BytesIO
- Compressed Files
- The os Module
- Filesystem Operations
- Text Input and Output
- Richer-Text I/O
- Interactive Command Sessions
- Internationalization
- 11. Persistence and Databases
- 12. Time Operations
- 13. Controlling Execution
- 14. Threads and Processes
- 15. Numeric Processing
- 16. Testing, Debugging, and Optimizing
- 17. Networking Basics
- 18. Asynchronous Alternatives
- 19. Client-Side Network Protocol Modules
- 20. Serving HTTP
- 21. Email, MIME, and Other Network Encodings
- 22. Structured Text: HTML
- 23. Structured Text: XML
-
24. Extending and Embedding Classic Python
-
Extending Python with Python’s C API
- Building and Installing C-Coded Python Extensions
- Overview of C-Coded Python Extension Modules
- Return Values of Python’s C API Functions
- The Initialization Module
- Reference Counting
- Accessing Arguments
- Creating Python Values
- Exceptions
- Abstract Layer Functions
- Concrete Layer Functions
- A Simple Extension Example
- Defining New Types
- Extending Python Without Python’s C API
- Cython
- Embedding Python
-
Extending Python with Python’s C API
- 25. Distributing Extensions and Programs
- 26. v2/v3 Migration and Coexistence
- Index
Product information
- Title: Python in a Nutshell, 3rd Edition
- Author(s):
- Release date: April 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449392925
You might also like
book
Python in a Nutshell, 4th Edition
Python was recently ranked as today's most popular programming language on the TIOBE index, thanks to …
video
Python Programming Language
6+ Hours of Video Instruction Python Programming Language LiveLessons provides developers with a guided tour of …
book
Learning Python, 5th Edition
Get a comprehensive, in-depth introduction to the core Python language with this hands-on book. Based on …
book
Python Cookbook, 3rd Edition
If you need help writing programs in Python 3, or want to update older Python 2 …