Python in a Nutshell

Alex Martelli

Editor

Mary Treseler

Python in a Nutshell, Second Edition

by Alex Martelli

Copyright © 2006, 2003 O’Reilly Media, Inc. All rights reserved.

O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or .

Editor: Mary T. O’Brien Production Editor: Matt Hutchinson Copyeditor: Linley Dolby Proofreader: Matt Hutchinson Indexer: Johnna Dinse Cover Designer: Emma Colby Interior Designer: Brett Kerr Cover Illustrator: Karen Montgomery Illustrators: Robert Romano and Jessamyn Read

Printing History:

March 2003:   First Edition. July 2006:    Second Edition.

Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarksof O’Reilly Media, Inc. The In a Nutshell series designations, Python in a Nutshell, the image of an African rock python, and related trade dress are trademarks of O’Reilly Media, Inc.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps.

While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility ...

Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.