Å·±¦ÓéÀÖ

Jump to ratings and reviews
Rate this book

The Python Standard Library by Example

Rate this book
&;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 (2 Volume Set) Ìý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 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.

1302 pages, Paperback

First published May 17, 2011

17 people are currently reading
117 people want to read

About the author

Doug Hellmann

8Ìýbooks1Ìýfollower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
37 (43%)
4 stars
39 (45%)
3 stars
7 (8%)
2 stars
3 (3%)
1 star
0 (0%)
Displaying 1 - 5 of 5 reviews
Profile Image for Frank.
36 reviews2 followers
August 28, 2018
Just a collection of blog articles. The only reason to have this book is to get a quick overview of what Python natively supports. For any specific module, IMHO, one should simply do a search online.
284 reviews9 followers
March 2, 2014
Product Description

“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.

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.

Profile Image for Jeanne Boyarsky.
AuthorÌý28 books75 followers
August 5, 2011
"The Python Standard library by Example" weighs in at 1200 pages. It is an expanded version of Doug's blog so check if you like the style there ().

The book assumes you already know Python and are comfortable reading it. Unsurprisingly, the book is code heavy. However, it is good code heavy. The examples are only as long as they need tob e to communicate a point rather than including redundant information. Output is included to clearly understand what is happening. Another advantage is you get to read a lot of Python seeing libraries used properly and common idioms.

My favorite things:
1) build up to a more complex example such as wih regular expressions.
2) clearly indicates what version of Python API introduced
3) defines terms without assuming much outside knowledge on domains like threading

Since the book was so thick, I read half of it and skimmed the rest. It is very easy to jump around and go back to the relevant parts when you need them.

---
Disclosure: I received a copy of this book from the publisher in exchange for writing this review on behalf of CodeRanch.
Profile Image for Mike S.
385 reviews39 followers
February 17, 2016
A very thorough look at the Python Standard Library with a lot of great code examples. The book is well written, very clear and easy to read, and contains a wealth of information. If I code Python professionally I'll buy the book. Right now I'm working my way through it on a loan from the local library. Definitely worth looking at, it gives you a lot of insight into working with Python.
Profile Image for mark.
166 reviews1 follower
October 2, 2012
An excellent reference work for someone already familiar with the language, and among the better Python reference books out there.
Displaying 1 - 5 of 5 reviews

Can't find what you're looking for?

Get help and learn more about the design.