or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Sell Back Your Copy
For a $0.24 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Python Standard Library (Nutshell Handbooks) with
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

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

Python Standard Library (Nutshell Handbooks) with [Paperback]

Fredrik Lundh (Author)
3.3 out of 5 stars  See all reviews (9 customer reviews)

List Price: $29.95
Price: $22.76 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $7.19 (24%)
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.
Only 3 left in stock--order soon (more on the way).
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Book Description

May 2001

Python Standard Library is an essential guide for serious Python programmers. Python is a modular language that imports most useful operations from the standard library (basic support modules; operating system interfaces; network protocols; file formats; data conversions; threads and processes; and data storage). You can't really program in Python without using it. In this book, author Fredrik Lundh, creator of the Python Imaging Library (PIL), delivers tested, accurate documentation of all the modules in the Python Standard Library, along with over 300 annotated example scripts using the modules.

Python Standard Library renders this valuable information in a clean, easy-to-read format, yet doesn't talk down to readers. This accurate and complete reference documentation is for the Python programmer who wants the facts and little else.

The book is based on the author's work with the Python newsgroup: he reviewed more than 2500 questions and answers to that newsgroup in order to make sure the book covered what Python users really wanted to know. An earlier version of this book has been available electronically for over a year, so the material has been tested by Python programmers in real-life applications.

This version of Python Standard Library covers all the new modules and related information for Python 2.0, the first new major release of Python in four years.


Frequently Bought Together

Customers buy this book with Python in a Nutshell, Second Edition (In a Nutshell) $25.02

Python Standard Library (Nutshell Handbooks) with + Python in a Nutshell, Second Edition (In a Nutshell)
  • This item: Python Standard Library (Nutshell Handbooks) with

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Python in a Nutshell, Second Edition (In a Nutshell)

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



Editorial Reviews

Amazon.com Review

Ideal for any working Python developer, Fredrik Lundh's Python Standard Library provides an excellent tour of some of the most important modules in today's Python 2.0 standard. Mixing sample code and plenty of expert advice, this title will be indispensable for programmers.

The book presents sample script code--written by a frequent contributor to Python newsgroups--for almost 200 of the built-in modules in Python 2.0 and shows how to solve common programming problems in Python. Instead of a function-based reference, you get sample scripts for a wide variety of solutions centering on different Python modules.

Early sections look at core modules for working with the operating system, math, and strings, among other functions. Material on Python's excellent support for files and directories will help you master the file system. Explanations of various encryption schemes will let you add security to your Python scripts.

Getting Python to multitask with multiple threads comes next, along with getting Python programs to communicate using pipes and signals. After the sample scripts for pickling Python objects to and from files, the book delves into modules that are geared toward today's Internet. First, there's coverage of Python's support for XML, HTML, and SGML, followed by a discussion of its extensive networking support for low-level sockets to high-level Internet protocols, including e-mail and FTP. Sample scripts for e-mail will be really useful for any Python programmer.

Later chapters provide coverage of internationalization support in Python and its support for multimedia. The book closes with material on platform-specific modules (which are specific to Unix and/or Windows) as well as modules that are obsolete but necessary to understanding legacy Python code.

There's a lot of expertise on display in Python Standard Library. The code does much of the talking in this example-packed text, which is sure to earn its place on any working Python programmer's bookshelf. --Richard Dragan

Topics covered:

  • Introduction to the Python 2.0 standard modules
  • Core modules (including modules for operating system functions, string, math, time, and garbage collection)
  • File and directory modules
  • Encryption and security modules
  • Threads, processes, pipes, and signals in Python
  • Persisting Python objects (marshalling and pickling objects)
  • Python modules for XML, HTML, and SGML
  • Modules for e-mail and news support
  • Internet programming with Python (including sockets, a chat example, FTP, SMTP, IMAP, POP, and Telnet)
  • Internationalization support
  • Modules for multimedia support (image and sound files)
  • Data storage in Python (with shelves)
  • Python tools
  • Platform-specific modules (including Unix- and Windows-specific modules)
  • Miscellaneous and legacy Python modules

Review

"With useful, witty code examples Python Standard Library is a joy to work through, providing much more meat than any standard reference work." Martin Howse, Linux User & Developer - VSJ, Feb

Product Details

  • Paperback: 304 pages
  • Publisher: O'Reilly Media (May 2001)
  • Language: English
  • ISBN-10: 0596000960
  • ISBN-13: 978-0596000967
  • Product Dimensions: 9.3 x 6.9 x 0.8 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.3 out of 5 stars  See all reviews (9 customer reviews)
  • Amazon Best Sellers Rank: #1,397,381 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

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

10 of 12 people found the following review helpful:
5.0 out of 5 stars A must-have for the non-expert Python programmer, June 18, 2001
By 
Luke Tymowski (Toronto, ON Canada) - See all my reviews
This review is from: Python Standard Library (Nutshell Handbooks) with (Paperback)
If you are learning Python, a beginner to intermediate Python programmer, you'll want to get a copy of this book. It won't do as your only Python book, but as a supplement to <i>Learning Python</i> or one of the other introductory Python books, it is invaluable for the non-expert Python programmer. If you bought the first edition of the book, which was available only as an eBook, you'll want this edition as it covers Python 2.0 as well as Python 1.5.2. (The eBook edition covered only Python 1.5.2.)

Each chapter begins with a brief summary of what will be covered. Chapter 4 is summarised as follows: "This chapter describes a number of modules that can be used to convert between Python objects and other data representations. These modules are often used to read and write foreign file formats and to store or transfer Python variables." It's terse, to be sure, but it's not meant for someone who has never looked at Python before.

Frederik assumes you know which module you want to use and gives you some sample code that shows you how to use it. You might ask on a newsgroup how to parse an HTML file. Someone will answer and tell you to look at either the htmllib or sgmllib module. Great. So, umm, how do you use them? A sample script showing you how to do something with either module or both could save you hours of frustration. Frederik also gives you tips on how best to use a module or when not to use it. For example, in describing the htmllib module, he says "If you're only out to parse an HTML file and not render it to an output device, it's usually easier to use the sgmllib module instead."

The book is sprinkled with tips. Early in Chapter 1 he points out that "What you might now know already is that import delegates the actual work to a built-in function called __import__. The trick is that you can call this function directly. This can be handy if you have the module name in a string variable, which imports all modules whose names end with '-plugin'."

The books covers: core modules (eg, re, time); more standard modules (eg, file input, md5); threads and processes (eg, thread, pipes); data representation (eg, pickle, base64); file formats (eg, xmllib, zipfile); mail and news message processing (eg, rfc822, mimetypes); network protocols (eg, socket, asyncore); internationalisation (eg, unicodedata); multimedia modules (eg, wave, winsound); data storage (eg, dbhash, gdbm); tools and utilities (eg, pdb, profile); platform-specific modules (eg, pwd, nt); implementation support modules (eg, macpath, ntpath); and other modules (eg, Bastion, calendar, posixfile, regsub).

The sample code is printed in Courier and some of the samples are tracked too tightly, making it difficult to read. I assume in production they applied the same tracking values for the body text to the code text. (Tracking is the spacing between a series of characters where kerning is the space between two characters.) But that happens only occasionally.

Also included with the book is a CD which contains copies of all the scripts plus an evaluation copy of PythonWorks Pro 1.2, a Python IDE for Windows, Linux, and Solaris. (Fredrik works for Secret Labs AB who develop PythonWorks.) I was able to browse and open the sample files on MacOS X. But of course I couldn't try the evaluation copies of PythonWorks. I would rather they had dropped the CD and made the sample scripts available as a download -- it would drop a few dollars off the cost of the book. If you're an expert Python programmer you won't need this book. But if you're a beginner to intermediate Python programmer you'll find the sample code and commentary invaluable when you try to implement an unfamiliar module, particularly some of the more complex ones. And the tips sprinkled throughout the text will help you achieve mastery of this most glorious of programming languages. Highly recommended.

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


7 of 8 people found the following review helpful:
3.0 out of 5 stars Has been superceeded, January 25, 2006
This review is from: Python Standard Library (Nutshell Handbooks) with (Paperback)
I bought this book in 2004 when I was just starting to learn Python. I never once used it. Its not a bad book, just less useful now than in 2001.

The book covers Python 2.0. Anything before 2.2 for any Python book is probably not worth the trouble in 2006 and beyond.

When looking for information about a Python module I look in Alex Martelli's Nutshell book(2.2) and the go to the online Library Reference. The nutshell is good for background and examples and the Library Reference brings things up to 2.4.

If I am not quite sure what I am looking for then the Python Cookbook (2nd edition) is the most help.

Mark Pilgram's Dive into Python is a great, in-depth look at some of the more useful standard library modules.

I hope Alex Marelli updates his Nutsehell book for 2.4.

There are other good books for learning Python but the Nutshell(O'Reilly), Cookbook(O' Reilly), Library Reference(python.org), and Dive into Python(online or an Apress book) do the best job of covering the standard library,
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


7 of 8 people found the following review helpful:
2.0 out of 5 stars Please don't buy this book, June 4, 2001
By A Customer
This review is from: Python Standard Library (Nutshell Handbooks) with (Paperback)
The author knows python, but the book itself is not worth it. It just contains lots of code snippet and little explanation.

The two books that I'll recommend are "Python Essential Reference" by David M. Beazley (a second edition is coming soon) and "Core Python" by Wesley Chun.

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



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
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

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