Buy New
-50%
$29.89$29.89
$3.99 delivery Wednesday, May 13
Advertisement
Advertisement
Ships from: GreenIceMedia Sold by: GreenIceMedia
Used - Very Good
$7.09$7.09
FREE delivery May 12 - 14
Advertisement
Advertisement
Ships from: ThriftBooks-Phoenix Sold by: ThriftBooks-Phoenix
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
The Python Standard Library by Example 1st Edition
Purchase options and add-ons
&;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
- 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.
- ISBN-100321767349
- ISBN-13978-0321767349
- Edition1st
- PublisherAddison-Wesley Professional
- Publication dateJanuary 1, 2011
- LanguageEnglish
- Dimensions7 x 2 x 9 inches
- Print length1302 pages
There is a newer edition of this item:
$40.27
(134)
Only 1 left in stock - order soon.
Deals on related products
From the Publisher
59 Specific Ways to Write Better Python
|
5+ Hours of Video Instruction
|
Definitive Reference Guide
|
Master the Powerful Python 3 Standard Library through Real Code Examples
|
8+ Hours of Video Instruction
|
|
|---|---|---|---|---|---|
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
|||
| Customer Reviews |
4.6 out of 5 stars 377
|
— |
4.4 out of 5 stars 225
|
4.5 out of 5 stars 134
|
— |
| Price | $11.83$11.83 | — no data | $33.00$33.00 | $40.27$40.27 | — no data |
| Title | Effective Python | Effective Python LiveLessons | Python Essential Reference | The Python Standard Library by Example | Modern Python LiveLessons: Big Ideas and Little Code in Python |
| Author | Brett Slatkin | Brett Slatkin | David Beazley | Doug Hellmann | Raymond Hettinger |
| User Experience Level | Intermediate and advanced level Python programmers | Intermediate and advanced level Python programmers | Assumes that the reader has prior programming experience with Python or another language such as C or Java | Intermediate-level Python programmers | Intermediate-level Python programmers |
| What You Will Learn | How to harness Python’s full power to write exceptionally robust and well-performing code. | The Pythonic way of writing programs, building on a fundamental understanding of Python to help you write programs more effectively. | The core Python language, and the most essential parts of the Python library. | How to utilize the Python 3.x library to jump-start application development. | How to elegantly code powerful solutions succinctly and efficiently with Python. |
| Core Concept | Using the concise, scenario-driven style pioneered in Scott Meyers’ best-selling Effective C++, Brett Slatkin brings together 59 Python best practices, tips, and shortcuts, and explains them with realistic code examples. | Hands-on demonstration of a broad but related set of items designed to provide concise and specific guidance on what to do and what to avoid when writing programs using Python. | Accurate and concise reference to the most important parts of Python. | Presents selected examples from the hundereds of modules in the Python standard linrary demonstrating how to use the most commonly used features of the modules that support Python’s 'batteries included' slogan. | Provides developers with an approach to programming in Python that expresses big ideas succinctly, with the minimum of code, allowing the business logic to shine through. |
| Key Topics Covered | Best practices for writing functions that clarify intention, promote reuse, and avoid bugs; Expressing behaviors with classes and objects; Avoid pitfalls with metaclasses and dynamic attributes; Efficient approaches to concurrency and parallelism; Techniques and idioms for using Python’s built-in modules; Tools and best practices for collaborative development | Methods; Comprehensions and generators; Functions and classes; Concurrency and parallelism; How to make programs more robust | Language features, libraries, and modules; Generators, coroutines, closures, metaclasses, and decorators; How to use Python 2.6’s forward compatibility mode to evaluate code for Python 3 compatibility; Low-level system and networking library modules | Python 3.x’s new libraries, significant functionality changes, and new layout and naming conventions. Expert porting guidance for moving code from 2.x Python standard library modules to their Python 3.x equivalents. | Newer features from Python 3.6, including f-strings and type hinting; ETL (extract-transform-load) techniques to prepare real-world data for analysis; How to improve code reliability |
| Python Versions Covered | 3.x and 2.x | Python 3 | Python 2.6 and 3.0. Omits features of Python 2 that have been removed from Python 3. Does not features of Python 3 that have not been back-ported. | Python 3 In an effort to maintain clear and concise descriptions for each example, the differences between Python 2 and 3 are not highlighted in each chapter. | Python 3.6 |
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
- Publisher : Addison-Wesley Professional
- Publication date : January 1, 2011
- Edition : 1st
- Language : English
- Print length : 1302 pages
- ISBN-10 : 0321767349
- ISBN-13 : 978-0321767349
- Item Weight : 3.62 pounds
- Dimensions : 7 x 2 x 9 inches
- Part of series : Game Design
- Best Sellers Rank: #7,767,119 in Books (See Top 100 in Books)
- #5,720 in Python Programming
- #11,558 in Computer Programming Languages
- Customer Reviews:
About the author

Doug Hellmann is a Senior Principal Software Engineer at Red Hat, working on OpenStack. 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. In addition to his involvement with the OpenStack community, Doug is a Fellow of the Python Software Foundation, and served as its Communications Director from 2010-2012. After a year as a regular columnist for Python Magazine, he served as Editor-in-Chief from 2008-2009. Doug published the popular "Python Module of the Week" series on his blog. He lives in Athens, Georgia, USA with his wife and cats.
Products related to this item
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Top reviews from the United States
- 5 out of 5 stars
Many clear examples of how to use Python's standard library
Reviewed in the United States on June 15, 2011I 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.
36 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Practical python reference
Reviewed in the United States on October 23, 2025Long term utility. Easy lookup. One of the best python references, for basics.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Good book by Hellmann
Reviewed in the United States on July 8, 2020It's hard not to like what Doug Hellmann writes. Some of it is useful for Python 3, but I rated it with a 4 because I was looking for something for Python 3, this book was recommended and so I got it not realizing it was primarily 2.7. I do recommend Doug Hellmann's books but find one that covers versions 3.x (unless you are still working in 2.7 - by all means this book would be a good resource).
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
STL for Python 2.7
Reviewed in the United States on June 23, 2024This book is for v2.7 and not Python 3, but it says so on the book. The seller left a note in the book, which I thought was a nice touch. The condition of the book was so good that I couldn't tell that it was used. Example code is printed in a font that is so light that it almost looks faded. But that's a ding on the seller. There's nothing they could do about the publisher's choice of font.
It is a good value for money, and I'm very satisfied with my purchase.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Useful book on Python Modules
Reviewed in the United States on August 26, 2014The book provided examples for some of the numerous Python modules. It provided information and examples for modules not included in the other Python reference books in my library. I found the book useful and it met my expectations. I would recommend the book to other programmers. May not be suitable for a beginner, unless they have experience with other programming languages, because the author does not attempt to present the material in a manner suitable for beginners.
4 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 2 out of 5 stars
Not a Python3 book
Reviewed in the United States on December 10, 2012I 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. If you want Python3 the book title must have Python3 in it apparently.
While I expect that many parts are useful, the Internet section about urllib is all Python 2 and since I went there first, nothing that I have tried from this book actually works.
The copyright is 2011 on this book, long after Python 3 came out so there has been time to update things or at least at an asterisk here and there.
12 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 3 out of 5 stars
Book is ok, but you're probably better off just googling the info
Reviewed in the United States on August 3, 2013The reason for the low rating is not so much the book (it's reasonably well written, it covers A LOT of ground, it is accurate, as far as I can tell) but more the concept: despite is rather hefty size (1,200+ pages) this covers an enormous amount of ground, and it can only go so far in depth for each topic.
So, all you can hope for is to get a general idea of what a given library can do, see some example code, but then, if you want to use any of those, you'll find yourself googling for more in-depth information (most likely, from the docs.python.org website): at this point, you might as well have gone there in the first place.
As an experienced Python developer, you'll want to bypass the info in this book, and just head off to the Python docs directly - and figure out usage yourself; as a beginner, you'll find much value from this book, both to 'discover' what is possible with Python's standard library (it turns out, a lot!) as well as some basic examples as to how to use it.
11 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Learn by doing and example
Reviewed in the United States on August 2, 2012Mr. Hellmann presents the Python Standard Library in a way it teaches you by doing, which to most, is the best way to learn programming.
Lets face it, the standards docs can be difficult to comprehend or follow. This book explains the standard library in a way that is simpler than the standard docs.
The chapters are concise and full of examples. There is non piece of code that is written where he doesn't explain how it works.
Over all it is a great book to have if you're an intermediate(and up) python developer.
3 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
dave5 out of 5 starsHighly recommended. Buy it now!
Reviewed in the United Kingdom on April 15, 2012For the generalist this is the one python book you should own. Where Perl has the CPAN, python has its standard library. Get familiar with this book and you'll save yourself a lot of time. Lot's of things you'll need to do on a regular basis are a part of the standard library for exactly that reason. Mr Hellman has done an awesome job of writing a succinct little example for just about every corner of it's standard library.
This book reminds me of other "Magnum Opus" type works like PC Intern, Programming Perl and the Stevens TCP/IP books and like those books it's a reference book that will stand good for many years.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Ps5 out of 5 starsHeader
Reviewed in India on January 23, 2019Book itself
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
C. Giovanni5 out of 5 starsOttimo reference per lo sviluppo in Python
Reviewed in Italy on December 30, 2012Questo libro descrive le innumerevoli librerie di supporto a Python. Da leggere anche solo per avere un'idea di quanto sia gia' presente nella versione standard del linguaggio, e quanto le "batterie incluse" di Python siano effettivamente utili a risparmiare tempo durante la programmazione,
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Cèl2 out of 5 starsobsolète quand on programme déjà en python 3
Reviewed in France on June 24, 2014obsolète quand on programme déjà en python 3
un peu indigeste mais je suis sûr que certains apprécieront de consilter les doc offline
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Alessandro Pocaterra5 out of 5 starsA must for serious Python developer
Reviewed in Germany on October 21, 2016This books collects in a single place a lot of info you can probably find on the Net (i.e. on stackoverflow.com).
Even if I am an ebook-fanatic it is invaluable to be able to note, add post-it, bookmark the pages.
Great book, great and very simple examples help a lot more than the official documentation.
Well done.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again



![Computer Networking Bible: [3 in 1] The Complete Crash Course to Effectively Design, Implement and Manage Networks. Including Sections on Security, Performance and Scalability](https://m.media-amazon.com/images/I/41H4YJnxKgL._AC_SR100,100_QL65_.jpg)


