or
Sign in to turn on 1-Click ordering.
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

 
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) [Paperback]

Fredrik Lundh
4.0 out of 5 stars  See all reviews (1 customer review)
RRP: £22.99
Price: £19.47 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £3.52 (15%)
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
Usually dispatched within 10 to 12 days.
Dispatched from and sold by Amazon. Gift-wrap available.
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. Learn more.

Book Description

17 May 2001 0596000960 978-0596000967 1

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.



Product details

  • Paperback: 304 pages
  • Publisher: O'Reilly Media; 1 edition (17 May 2001)
  • Language: French
  • ISBN-10: 0596000960
  • ISBN-13: 978-0596000967
  • Product Dimensions: 17.8 x 2.1 x 23.4 cm
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 904,710 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

Amazon Review

Ideal for any working Python developer, Fredik 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 for almost 200 of the built-in modules in Python 2.0--written by a frequent contributor to Python newsgroups--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 centring on different Python modules.

Early sections look at core modules for working with the operating system, maths 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 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 internationalisation 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, maths and time)
  • 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)
  • internationalisation support
  • mmmodules 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

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

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

5 star
0
3 star
0
2 star
0
1 star
0
4.0 out of 5 stars
4.0 out of 5 stars
Most Helpful Customer Reviews
7 of 7 people found the following review helpful
4.0 out of 5 stars A good guide, but not a reference 13 Jun 2001
Format:Paperback
This book isn't really a reference for the Python standard library - David Beazley's "Python Essential Reference" probably fills that gap better - but it is a very useful guide to what the library can be used for, with a comprehensive and motivated selection of code examples.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 3.3 out of 5 stars  9 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 18 Jun 2001
By Luke Tymowski - Published on Amazon.com
Format: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.

7 of 8 people found the following review helpful
3.0 out of 5 stars Has been superceeded 26 Jan 2006
By John X Dooley - Published on Amazon.com
Format: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,
7 of 8 people found the following review helpful
2.0 out of 5 stars Please don't buy this book 4 Jun 2001
By A Customer - Published on Amazon.com
Format: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.

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