EARTH WEEK
Now through April 22, save up to 70% on digital learning resources. Learn more.
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
This is the Rough Cut version of the printed book.
The Python Standard Library for Python 3.x contains hundreds of exceptionally useful modules, all extensively tested and ready to jump-start your application development. The Python Standard Library by Example, Second Edition,introduces virtually every important area of the Python 3.x library with concise, stand-alone examples designed for easy learning and reuse.
Python expert Doug Hellmann has fully updated his widely praised first edition to reflect Python 3.x’s major PSL changes. He introduces valuable new libraries, important revisions to functionality, new standardized layout and naming conventions, and more. He also provides indispensable porting guidance for moving code from specific 2.x PSL modules to Python 3.x and its corresponding libraries.
Building on his increasingly popular "Python Module of the Week" blog series, Hellmann focuses on “showing” not “telling,” explaining code behavior through downloadable examples that fully demonstrate each feature. You’ll find practical, up-to-date code for working with text, data structures, algorithms, dates/times, math, the file system, persistence, data exchange, compression, archiving, crypto, processes/threads, networking/Internet, email, developer/language tools, runtime, modules, packages, and much more.
Each chapter section covers one module, with a short introduction explaining its purpose, and a carefully organized discussion of features--building from basic to complex, or following the order in which a programmer would use them in real software. Code sections concisely introduce and describe each example, show sample output, and present variations wherever helpful.
If you’re new to Python, this book will quickly connect you to a whole new world of functionality. If you’re an experienced Python developer, you’ll discover powerful new solutions--and better ways to use modules you’ve already tried.
Foreword
Introduction
Acknowledgments
About the Author
Chapter 1: Text
Chapter 2: Data Structures
Chapter 3: Algorithms
Chapter 4: Dates and Times
Chapter 5: Mathematics
Chapter 6: The File System
Chapter 7: Data Persistence and Exchange
Chapter 8: Data Compression and Archiving
Chapter 9: Cryptography
Chapter 10: Concurrency with Processes, Threads, and Coroutines
Chapter 11: Networking
Chapter 12: The Internet
Chapter 13: Email
Chapter 14: Application Building Blocks
Chapter 15: Internationalization and Localization
Chapter 16: Developer Tools
Chapter 17: Runtime Features
Chapter 18: Language Tools
Chapter 19: Modules and Packages
Appendix A: Porting Notes
Appendix B: Outside of the Standard Library
Index of Python Modules
Index