Amazon.com: The Python Standard Library by Example (Developer's Library) (9780321767349): Doug Hellmann: Books
The Python Standard Library by Example (Developer's Library) and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $8.51 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
The Python Standard Library by Example (Developer's Library)
 
 
Start reading The Python Standard Library by Example (Developer's Library) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

The Python Standard Library by Example (Developer's Library) [Paperback]

Doug Hellmann (Author)
4.4 out of 5 stars  See all reviews (10 customer reviews)

List Price: $59.99
Price: $33.87 & this item ships for FREE with Super Saver Shipping. Details
You Save: $26.12 (44%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Thursday, February 23? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $21.60  
Paperback $33.87  
Sell Back Your Copy for $8.51
Whether you buy it new on Amazon for $33.87 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $8.51.
New Price$33.87
Trade-in Price$8.51
Price after
Trade-in
$25.36

Book Description

June 11, 2011 0321767349 978-0321767349 1

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


Frequently Bought Together

The Python Standard Library by Example (Developer's Library) + Python Essential Reference (4th Edition) + Programming Python
Price For All Three: $102.17

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Python Essential Reference (4th Edition) $28.75

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Programming Python $39.55

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

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.


Product Details

  • Paperback: 1344 pages
  • Publisher: Addison-Wesley Professional; 1 edition (June 11, 2011)
  • Language: English
  • ISBN-10: 0321767349
  • ISBN-13: 978-0321767349
  • Product Dimensions: 9 x 7 x 1.8 inches
  • Shipping Weight: 3.6 pounds (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #23,944 in Books (See Top 100 in Books)

More About the Author

Doug Hellmann is currently a Senior Developer with Racemi, Inc. and Communications Director of the Python Software Foundation. He has been programming in Python since version 1.4, and has worked on a variety of Unix and non-Unix platforms for projects in fields such as mapping, medical news publishing, banking, and data center automation. After a year as a regular columnist for Python Magazine, he served as Editor-in-Chief from 2008-2009. Since 2007, Doug has published the popular "Python Module of the Week" series on his blog. He lives in Athens, Georgia.

 

Customer Reviews

10 Reviews
5 star:
 (6)
4 star:
 (3)
3 star:    (0)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.4 out of 5 stars (10 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

18 of 19 people found the following review helpful:
5.0 out of 5 stars Many clear examples of how to use Python's standard library, June 15, 2011
Amazon Verified Purchase(What's this?)
This review is from: The Python Standard Library by Example (Developer's Library) (Paperback)
I had pre-ordered this book, as the author's website and blogs have always been excellent in their ability to give concise examples for the usage of Python's extensive standard library. I have now had the book for a few days and I am very pleased with it.

I sometimes wonder when I will buy my last physical book, as digital versions are becoming standard. This book, however, is a great example of some of the great computer books that lived most of their lives right next to my computer: a well-organized reference manual with a great index and table of contents (you can view these on the Amazon page for this title).

I teach Python in my high school Computer Science classes, and have always loved the fact that I can write Python code quickly and successfully for so many tasks that come up when teaching. Learning Python is one thing--being able to utilize the standard library in "Pythonic" ways is another skill entirely. The core language is perfect for introducing students to real programming--the instructor can choose to introduce many of the functional programming aspects of Python after students have become comfortable with the traditional imperative approach (gradually leading to an understanding of abstraction in a natural way). But it won't be long and students will start discovering just how easy it is to utilize the standard library for many of the tasks that are coded from scratch in books that merely use Python to teach the fundamentals of Computer Science and Programming. This book is an excellent reference to have for those students that want to use Python for tasks outside of the usual core language programming challenges that they are learning in class. I have students who have used Python for tasks that I had simply never though of--like my student that wrote a forum bot to alert him via email whenever new posts on our phpBB forum appeared. Other students have created chat rooms and file servers with amazing efficiency using Python.

I highly recommend this book for anyone that 1) wants to learn how to utilize the "batteries included" in Python, 2) need a handy guide for working outside the core language. As an educator, I love how easy it is to simply pick up this book, open to a random spot, and quickly get ideas for examples to use in class that will help students see the amazing potential Python has. Also, although the standard library has excellent documentation, the vast majority of students simply want to see examples and then try altering them for their own purposes. This book provides those examples that are simply not collected anywhere else in such an organized and accessible format.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


11 of 11 people found the following review helpful:
4.0 out of 5 stars A lot of information at a great price; I suggest a hard copy because you'll want to flip through it quickly, July 25, 2011
This review is from: The Python Standard Library by Example (Developer's Library) (Paperback)
If you have ever worked with Python, you have probably come across Python Module of the Week (PyMOTW) or virtualenvwrapper. Both are the work of Doug Hellmann. He has now brought to life The Python Standard Library By Example. If Python gives you the batteries, Hellmann gives you not only an instruction manual but the "on" switch to get you going right away.

The Python documentation is really great, but might leave some with a "some assembly required" feeling. The book's examples aim to be more complete, while still covering a serious breadth of the Standard Library. Do not expect to use all of the examples in your project without some modification, customization and expansion. After all, they are miniature projects in their own right.

By the Numbers:

It weighs in at a whopping 1300-something pages across 19 chapters. This translates roughly to a 2-inch print copy, or a 7.3 MB PDF. The accompanying source is 5.5 MB after unzipping and contains 113 example modules. The examples were tested with Python 2.7. Some of the examples would port to Python 3 easily, others not so much. Even before reading it, I was pretty impressed and somewhat reluctant. Some of those numbers might not be very meaningful as far as the book's usefulness, but it should give you a sense of how much material is covered. In my opinion, you get a lot for the price.

What I Thought:

I use Python as my primary language and I admit that I had never heard of some of the modules covered (e.g. anydbm, asyncchat, pyclbr, just to name a few). Not only that, the modules which I had previously used were probably in the minority and smaller still are the modules which I use regularly. This is in part due to changes made in Python 2.7 that I have not absorbed, but also because there are plenty of places for cool features to hide out if you are not looking for them. I can say that after being exposed to the material, I have a better understanding of some of the most common modules and have added a few others to my arsenal.

I would recommend this book to any serious Python programmer who wants to get the most of what Python has to offer. If you are just starting with Python, but comfortable with another language, you might pick up quite a bit from just a quick skim of everything. You can then drill down into the parts which seem most applicable or interesting. However, if you are new to programming, this is probably not the book for you (as mentioned in the book's Introduction, and several other reviews I found).

I received an electronic review copy from the publisher in exchange for my review. The past two or three days my home internet has been down. This book was great to have around in a time of crisis. But due to the nature of the material I think I would personally make more use of it as a hard copy. I admit to not reading it cover to cover, but I cannot imagine anyone wanting to do so. That said, it is definitely a great addition to my library.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 9 people found the following review helpful:
5.0 out of 5 stars useful contribution to python literature, July 15, 2011
By 
Michael Deacon (Berkeley, CA, USA) - See all my reviews
This review is from: The Python Standard Library by Example (Developer's Library) (Paperback)
While most python books teach you how to write code in the language, this book takes a different approach - it shows you how to build python programs using existing code from the standard library. As every python programmer knows, the best way to leverage the power of the language is to use the built-in functionality of the library.

True to its title, the book features numerous examples, each one fully annotated, explaining how to use the modules.

Need to parse text using regular expressions? Python has a module for that. What about searching file system directories recursively? Network sockets? Those and hundreds of other useful tools are available in the standard library. Hellman shows you how to use the existing modules in the library so that you don't have to reinvent the wheel.

A word of caution for those who are new to python: the book assumes familiarity with basic language syntax.

Overall, this book compares favorably with the other python texts I have read. What makes Hellman's book exceptional is that it concentrates on an important area of the language that has been relatively unexplored by most of the python tutorial literature. Other excellent python books include Mark Lutz, "Programming Python," and David Beazley, "Python Essential Reference."
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews








Only search this product's reviews



Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...



Look for Similar Items by Category


Look for Similar Items by Subject