Home > Store

Python 3 Standard Library by Example, Rough Cuts, The

Python 3 Standard Library by Example, Rough Cuts, The

Rough Cuts

  • Available to Safari Subscribers
  • About Rough Cuts
  • Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.

Not for Sale

Also available in other formats.


  • Copyright 2017
  • Dimensions: 7" x 9"
  • Pages: 1456
  • Edition: 1st
  • Rough Cuts
  • ISBN-10: 0-13-429112-3
  • ISBN-13: 978-0-13-429112-3

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.

Sample Content

Table of Contents




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



Submit Errata

More Information