Shop Viral Kitchen Essentials
Buy New
-50% $29.89
$3.99 delivery Wednesday, May 13
Ships from: GreenIceMedia
Sold by: GreenIceMedia
$29.89 with 50 percent savings
List Price: $59.99 Image
$3.99 delivery Wednesday, May 13. Details
Only 1 left in stock - order soon.
$$29.89 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.89
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Returns
30-day refund/replacement
30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
Shipping fee
May apply, not eligible for free return. See details
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$7.09
May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less See less
FREE delivery May 12 - 14. Details
In stock
$$29.89 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.89
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by ThriftBooks-Phoenix.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

  • The Python Standard Library by Example

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

The Python Standard Library by Example 1st Edition

4.2 out of 5 stars (54)

{"desktop_buybox_group_1":[{"displayPrice":"$29.89","priceAmount":29.89,"currencySymbol":"$","integerValue":"29","decimalSeparator":".","fractionalValue":"89","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"7JzdS5FbijbV8mTqcZD%2FJnjd%2FFE35WKCUdN8zqf%2F%2F0Melp%2BkdEtnb5Jl2yPuSRxyXaxGG26pRbOj7PqBokJCf1tAUr3x7X1iBhosFTO%2B0sS6JuCuoo0sBQWNxerexpUMtKTaMyHiW8wIStrJ6ctpcyPn4XaxpvK%2BWITg%2BfJ8OmWzGAYXFRFv2cTfSuLiWVg5","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$7.09","priceAmount":7.09,"currencySymbol":"$","integerValue":"7","decimalSeparator":".","fractionalValue":"09","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"7JzdS5FbijbV8mTqcZD%2FJnjd%2FFE35WKCQZQjoeKfTwL0UhLTuNzl0ODf%2Fny3T8cljHytocYlJO56EuiBS4VnqwgPgsCfG5H96YT5HTQ6xJpLMkeMApUDgCT4fXlNJSY9zbjXXOplUJEtzubw4eK2eMdEA4eFLMZI8yyKyVIcjw33VZf65EnZ%2BfefnWp301Al","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

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.

There is a newer edition of this item:

Sponsored

From the Publisher

Image
59 Specific Ways to Write Better Python
Image
5+ Hours of Video Instruction
Image
Definitive Reference Guide
Image
Master the Powerful Python 3 Standard Library through Real Code Examples
Image
8+ Hours of Video Instruction
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 no data $33.00 $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)
  • Customer Reviews:
    4.2 out of 5 stars (54)

About the author

Follow authors to get new release updates, plus improved recommendations.
Doug Hellmann
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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.

Sponsored

Customer reviews

4.2 out of 5 stars
54 global ratings
Sponsored

Customers say

Customers find this Python library book informative and perfect for introducing students to real programming, with one customer noting it provides examples for numerous Python modules. The book is well-organized as a reference manual, and customers appreciate its ease of use, with one mentioning it explains complicated units clearly.
AI Generated from the text of customer reviews

Select to learn more

11 customers mention informative, 10 positive, 1 negative
Customers find the book informative and well-structured, serving as a perfect reference for Python programming, particularly for introducing students to real programming concepts. One customer notes that it provides examples for numerous Python modules.
Perfect reference book for Python! Great for when you need to quickly reference something that's slipped your mind....Read more
A good reference and summary of the python standard library. Explains some complicated units clearly and succinctly.Read more
more for advanced pythoneers but great stuff. you'll find many good examples and great chapters on reg ex . Just lots of goodiesRead more
Informative, to the point. Just how I like my examples in books.Read more
10 customers mention content, 10 positive, 0 negative
Customers find the book well-organized as a reference manual, with one customer noting it includes a toolbox full of useful code.
After buying about a dozen books on Python, this is by far the best book I've layed eyes on....Read more
...Over all it is a great book to have if you're an intermediate(and up) python developer.Read more
Good book but bad printing quality. Some parts are barely readable.Read more
more for advanced pythoneers but great stuff. you'll find many good examples and great chapters on reg ex . Just lots of goodiesRead more
7 customers mention ease of use, 6 positive, 1 negative
Customers find the book easy to use, with one mentioning it explains complicated units clearly and another noting they can start using it right away.
Long term utility. Easy lookup. One of the best python references, for basics.Read more
...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...Read more
...This book explains the standard library in a way that is simpler than the standard docs. The chapters are concise and full of examples....Read more
...It's a toolbox full of useful code that you can start to use right now. Can't ask for more than that.Read 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, 2011
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    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.

    36 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Practical python reference
    Reviewed in the United States on October 23, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Long term utility. Easy lookup. One of the best python references, for basics.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    Good book by Hellmann
    Reviewed in the United States on July 8, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    It'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...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    STL for Python 2.7
    Reviewed in the United States on June 23, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This 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...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Useful book on Python Modules
    Reviewed in the United States on August 26, 2014
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    The 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 2 out of 5 stars
    Not a Python3 book
    Reviewed in the United States on December 10, 2012
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    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. 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 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, 2013
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    The 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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Learn by doing and example
    Reviewed in the United States on August 2, 2012
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    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.

    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 helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    Highly recommended. Buy it now!
    Reviewed in the United Kingdom on April 15, 2012
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    For 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.
  • 5 out of 5 stars
    Header
    Reviewed in India on January 23, 2019
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Ottimo reference per lo sviluppo in Python
    Reviewed in Italy on December 30, 2012
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Questo 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.
    Translated from Italian by Amazon
    See original
  • 2 out of 5 stars
    obsolète quand on programme déjà en python 3
    Reviewed in France on June 24, 2014
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    obsolè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.
    Translated from French by Amazon
    See original
  • 5 out of 5 stars
    A must for serious Python developer
    Reviewed in Germany on October 21, 2016
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

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