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
Sell Us Your Item
For a $13.50 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
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.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

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

Doug Hellmann
4.2 out of 5 stars  See all reviews (16 customer reviews)

Buy New
$33.81 & FREE Shipping. Details
Rent
$20.29
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
In Stock.
Rented by RentU and Fulfilled by Amazon.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $21.60  
Paperback $33.81  
Unknown Binding --  
Sell Back Your Copy for $13.50
No matter where you bought them, get up to 70% back when you sell your books at Amazon.com.
Used Price$28.95
Trade-in Price$13.50
Price after
Trade-in
$15.45

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.


Best Value

Buy The Python Standard Library by Example (Developer's Library) and get Python Essential Reference (4th Edition) at an additional 5% off Amazon.com's everyday low price.

The Python Standard Library by Example (Developer's Library) + Python Essential Reference (4th Edition)
Buy together today: $62.35

Show availability and 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: 6.9 x 1.7 x 9 inches
  • Shipping Weight: 3.6 pounds (View shipping rates and policies)
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Best Sellers Rank: #59,175 in Books (See Top 100 in Books)

More About the Author

Doug Hellmann is currently a senior developer with New Dream Network (DreamHost). 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. He was communications director of the Python Software Foundation from 2010-2012. 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

That said, it is definitely a great addition to my library. Ryan M. Balfanz  |  3 reviewers made a similar statement
Occasionally, I'll start paging through the book just to see what I can find. MrC  |  3 reviewers made a similar statement
Over all it is a great book to have if you're an intermediate(and up) python developer. daviedge  |  2 reviewers made a similar statement
Most Helpful Customer Reviews
23 of 23 people found the following review helpful
Format: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.
Comment | 
Was this review helpful to you?
31 of 33 people found the following review helpful
By Mfragin
Format:Paperback|Amazon Verified Purchase
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.
Was this review helpful to you?
16 of 16 people found the following review helpful
5.0 out of 5 stars useful contribution to python literature July 15, 2011
Format: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."
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Exactly what I expected
I have referenced his code on his web site many times. I wanted this book so that I had his web site code in a indexed format.
Published 26 days ago by muzklvr
3.0 out of 5 stars Save your money, visit the website
This book is a compilation of the posts found at [...]. Since all of these examples can be had for free in web form, which I consider to be more usable. Read more
Published 1 month ago by Richard D. Haase
4.0 out of 5 stars great find
more for advanced pythoneers but great stuff. you'll find many good examples
and great chapters on reg ex . Just lots of goodies
Published 2 months ago by Anthony Ha
2.0 out of 5 stars Not a Python3 book
I am developing new programs in Python3 and wanted up to date examples to speed things up.

I made the wrong assumption that this book was up to date. Read more
Published 5 months ago by Stuart F. Deal
5.0 out of 5 stars Python Standard Library by Example
This book is very useful as a reference for writing Python programs. The author describes advanced methods and strategies that can be learned easily and adapted to new programming... Read more
Published 5 months ago by etcher
5.0 out of 5 stars Learn by doing and example
Mr. Hellmann presents the Python Standard Library in a way it teaches you by doing, which to most, is the best way to learn programming. Read more
Published 9 months ago by daviedge
4.0 out of 5 stars Shows how the tinkertoys fit together
I have kept one star in reserve, and only awarded four, because of two limitations of this vast reference work. Read more
Published 18 months ago by Brandon Rhodes
5.0 out of 5 stars A Great Accompaniment To the Online Docs
I have to admit, when my friend first handed me this book (she got it as a gift from the publisher), I thought "why buy a python book when the language already has such thorough... Read more
Published 18 months ago by annalee
4.0 out of 5 stars Not your first Python book, but your second
I'd call myself a beginner with Python and programming generally. If you're a beginner like me, this shouldn't be your first Python book. Read more
Published 19 months ago by Coleman E. Mcfarland
5.0 out of 5 stars An excellent book on Python, for all skill levels
Doug Hellman is probably best known for the Python Module Of The Week website (PyMOTW). This site has been de-mystifying Python modules for many users. Read more
Published 20 months ago by MrC
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Listmania!


So You'd Like to...



Look for Similar Items by Category