The Python Standard Library by Example (Developer's Library) and over 1.5 million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
Trade in Yours
For a £7.50 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
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
5.0 out of 5 stars  See all reviews (2 customer reviews)
RRP: £38.99
Price: £34.31 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £4.68 (12%)
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
Only 4 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want it Wednesday, 19 June? Choose Express delivery at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition £20.15  
Paperback £34.31  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details. Special Offer until June 30, 2013: Receive an additional £5 promotional Gift Certificate, when you trade-in at least £10 worth of books. Learn more.

Book Description

1 Jun 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 (Developer's Library) + Python for Data Analysis
Price For All Three: £72.37

Buy the selected items together


Product details

  • Paperback: 1344 pages
  • Publisher: Addison Wesley; 1 edition (1 Jun 2011)
  • Language: English
  • ISBN-10: 0321767349
  • ISBN-13: 978-0321767349
  • Product Dimensions: 17.6 x 4.3 x 22.8 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 191,049 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

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.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
5.0 out of 5 stars Excellent 15 May 2012
By JJB
Format:Paperback|Amazon Verified Purchase
This book has improved my Python programming very much. Highly recommended for every programmer.
The examples clarify the content nicely. I intend to buy also the Kindle edition when (if) it comes for sale.
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Highly recommended. Buy it now! 15 April 2012
Format:Paperback|Amazon Verified Purchase
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.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.2 out of 5 stars  16 reviews
23 of 23 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 25 July 2011
By Ryan M. Balfanz - Published on Amazon.com
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.
31 of 33 people found the following review helpful
5.0 out of 5 stars Many clear examples of how to use Python's standard library 15 Jun 2011
By Mfragin - Published on Amazon.com
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.
16 of 16 people found the following review helpful
5.0 out of 5 stars useful contribution to python literature 16 July 2011
By Michael Deacon - Published on Amazon.com
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."
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

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
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges