The Python Standard Library by Example

· Addison-Wesley Professional
4.4
5 reviews
Ebook
672
Pages
Eligible
Ratings and reviews aren’t verified  Learn More

About this ebook

“Hellmann’s writing has become an indispensable resource for me and many others as it fills a critical gap in Python Documentation with examples.”

— Jesse Noller, Python Core Developer and PSF Board Member

Master the Powerful Python Standard Library through Real Code Examples

The Python Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internet—all extensively tested and ready to jump-start your application development. The Python Standard Library by Example introduces virtually every important area of the Python 2.7 library through concise, stand-alone source code/output examples, designed for easy learning and reuse.

Building on his popular Python Module of the Week blog series, author and Python expert Doug Hellmann focuses on “showing” not “telling.” He explains code behavior through downloadable examples that fully demonstrate each feature.

You’ll find practical code for working with text, data types, algorithms, math, file systems, networking, the Internet, XML, email, cryptography, concurrency, runtime and language services, and much more. Each section fully covers one module, and links to valuable additional resources, making this book an ideal tutorial and reference. Coverage includes

  • Manipulating text with string, textwrap, re, and difflib
  • Implementing data structures: collections, array, queue, struct, copy, and more
  • Reading, writing, and manipulating files and directories
  • Regular expression pattern matching
  • Exchanging data and providing for persistence Archiving and data compression
  • Managing processes and threads
  • Using application “building blocks”: parsing command-line options, prompting for passwords, scheduling events, and logging
  • Testing, debugging, and compilation
  • Controlling runtime configuration
  • Using module and package utilities

If you’re new to Python, this book will quickly give you access to a whole new world of functionality. If you’ve worked with Python before, you’ll discover new, powerful solutions and better ways to use the modules you’ve already tried.

Ratings and reviews

4.4
5 reviews
A Google user
October 31, 2011
This is an extremely thorough book which has considerably more content than any of the top shelf Python books I own. I have not found a more authoritative text on Python.
Did you find this helpful?

About the author

Doug Hellmann is a senior developer with Racemi, Inc., and communications director of the Python Software Foundation. He has programmed with Python since version 1.4, and has worked on multiple platforms in mapping, medical publishing, banking, and data center automation. Hellmann was previously columnist and editor-in-chief for Python Magazine and, since 2007, has blogged the popular Python Module of the Week series at doughellmann.com.

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.