Python 3 is the best version of the language yet: It is more powerful, convenient, consistent, and expressive than ever before. Now, leading Python programmer Mark Summerfield demonstrates how to write code that takes full advantage of Python 3’s features and idioms. Programming in Python 3, Second Edition, brings together all the knowledge you need to write any program, use any standard or third-party Python 3 library, and create new library modules of your own.
Summerfield draws on his many years of Python experience to share deep insights into Python 3 development you won’t find anywhere else. He begins by illuminating Python’s “beautiful heart”: the eight key elements of Python you need to write robust, high-performance programs. Building on these core elements, he introduces new topics designed to strengthen your practical expertise–one concept and hands-on example at a time. Coverage includes: - Developing in Python using procedural, objectoriented, and functional programming paradigms
- Creating custom packages and modules
- Writing and reading binary, text, and XML files, including optional compression, random access, and text and XML parsing
- Leveraging advanced data types, collections, control structures, and functions
- Spreading program workloads across multiple processes and threads
- Programming SQL databases and key—value DBM files
- Debugging techniques–and using Test Driven Development to avoid bugs in the first place
- Utilising Python’s regular expression mini-language and module
- Parsing techniques, including how to use the third-party PyParsing and PLY modules
- Building usable, efficient, GUI-based applications
- Advanced programming techniques, including generators, function and class decorators, context managers, descriptors, abstract base classes, metaclasses, coroutines, and more
Table of Contents:
- Chapter 1: Rapid Introduction to Procedural Programming
- Chapter 2: Data Types
- Chapter 3: Collection Data Types
- Chapter 4: Control Structures and Functions
- Chapter 5: Modules
- Chapter 6: Object-Oriented Programming
- Chapter 7: File Handling
- Chapter 8: Advanced Programming Techniques
- Chapter 9: Debugging, Testing, and Profiling
- Chapter 10: Processes and Threading
- Chapter 11: Networking
- Chapter 12: Database Programming
- Chapter 13: Regular Expressions
- Chapter 14: Introduction to Parsing
- Chapter 15: Introduction to GUI Programming
About the Author :
Mark Summerfield, owner of Qtrac Ltd., is an independent trainer, consultant, technical editor, and writer specializing in Python, C++, Qt, and PyQt. His books include Rapid GUI Programming with Python and Qt: The Definitive Guide to PyQt Programming (Addison-Wesley, 2008) and, cowritten with Jasmin Blanchette, C++ GUI Programming with Qt 4 (Addison-Wesley, 2006). As Trolltech’s documentation manager, Mark founded and edited Trolltech’s technical journal, Qt Quarterly.
Review :
“…Fulfills the immediate market need for those developers seeking to learn this latest evolutionary version of the Python lineage in a succinct, well-written package.”
–Mike Riley, Contributing Editor for Dr. Dobb’s
“Beyond the introduction to programming in Python 3 in the first chapter, if you progress through the first six chapters in sequence, you’ll be well on your way to taking off with using Python independently.”
–James Pyles, Technical Writer and Author of the blog “A Million Chimpanzees”
“…A key recommendation for any serious computer library strong in web programming languages.”
–Jim Cox, Midwest Book Review
“Summerfield’s book is an excellent source to start learning Python 3.”
–Anthony J. Duben, Computing Reviews