Python Cookbook: Recipes for Mastering Python 3
If you need help writing programs in Python 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms.
Inside, you'll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works.
Comprehensive Coverage of Python 3 Topics
This programming reference guide addresses the specific needs of developers working with Python 3.3 and beyond. The book provides tested solutions for common programming challenges, making it an essential resource for intermediate to advanced Python developers looking to modernize their codebase or expand their technical expertise.
Topics include:
- Data Structures and Algorithms
- Strings and Text
- Numbers, Dates, and Times
- Iterators and Generators
- Files and I/O
- Data Encoding and Processing
- Functions
- Classes and Objects
- Metaprogramming
- Modules and Packages
- Network and Web Programming
- Concurrency
- Utility Scripting and System Administration
- Testing, Debugging, and Exceptions
- C Extensions
Expert Authors with Proven Python Experience
David Beazley is an independent software developer and book author living in the city of Chicago. He primarily works on programming tools, provide custom software development, and teach practical programming courses for software developers, scientists, and engineers. He is best known for his work with the Python programming language, for which he has created several open-source packages (e.g., Swig and PLY) and authored the acclaimed Python Essential Reference. He also has significant experience with systems programming in C, C++, and assembly language.
Brian K. Jones is a system administrator in the department of computer science at Princeton University.
Designed for Experienced Python Developers
This cookbook format allows you to quickly find solutions to specific programming problems. Each recipe includes working code samples that can be immediately implemented in your projects, accompanied by detailed explanations of the underlying mechanisms. Whether you're migrating legacy Python 2 code or building new Python 3 applications, this technical book provides the practical guidance needed for professional software development.