Cider - Shop now
Buy new:
$34.90
$3.99 delivery May 14 - 15 to Nashville 37217
Ships from: GreenIceMedia
Sold by: GreenIceMedia
$34.90
$3.99 delivery May 14 - 15 to Nashville 37217. Details
Or fastest delivery May 8 - 13. Details
Only 2 left in stock - order soon.
$$34.90 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$34.90
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
GreenIceMedia
GreenIceMedia
Ships from
GreenIceMedia
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt. You may receive a partial or no refund on used, damaged or materially different returns.
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
$6.67
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 9 - 14 to Nashville 37217. Details
In stock
$$34.90 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$34.90
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-Baltimore.
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

Follow the author

Something went wrong. Please try your request again later.

Python in a Nutshell 1st Edition

4.4 out of 5 stars 31 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$34.90","priceAmount":34.90,"currencySymbol":"$","integerValue":"34","decimalSeparator":".","fractionalValue":"90","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"FUJF9BNKaJc%2F95jAq%2Ffz0%2FuGuc6lBvYWWTVdQ%2FLQ%2Fvw%2BcGyfEA42eIqfZFkn7joQC3mO4AljMH4bapYiVPVPQXmVOmbLey7%2BzlUNjFb%2BA8dfIaMtOXQZhtYf6c8PPosSesxQvfgiHuBXcSaUN5RCE32GgoHYzIpZcLl%2BtWv%2F0IuUOTKlI%2F1RpHmKZLA7O3uS","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$6.67","priceAmount":6.67,"currencySymbol":"$","integerValue":"6","decimalSeparator":".","fractionalValue":"67","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"FUJF9BNKaJc%2F95jAq%2Ffz0%2FuGuc6lBvYW4fpNdowQBkIFSj8zg4Fnsv%2F3Z4oY%2FJHjCTXZbYcAKh1H0iWAGUP%2F%2FPvASug23Sec%2FsjDHVTOGPByk3ywzNg%2FASPQb8sOtjEnFfxNwUKIQMd8PwJIYCtcv7tm9%2FU31URxY7LwCio2h0%2B3cbbRPhRNua8TmYjFAFrG","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Ask any Python aficionado and you'll hear that Python programmers have it all: an elegant language that offers object-oriented programming support, a readable, maintainable syntax, integration with C components, and an enormous collection of precoded standard library and extension modules. Moreover, Python is easy to learn but powerful enough to take on the most ambitious programming challenges. But what Python programmers have lacked is one concise and clear reference resource, with the appropriate measure of guidance in how best to use Python's great power. Now Python in a Nutshell fills this need. In the tradition of O'Reilly's "In a Nutshell" series, this book offers Python programmers one place to look when they need help remembering or deciphering the syntax of this open source language and its many modules. This comprehensive reference guide makes it easy to look up all the most frequently needed information--not just about the Python language itself, but also the most frequently used parts of the standard library and the most important third-party extensions. Python in a Nutshell provides a solid, no-nonsense quick reference to information that programmers rely on the most. This latest addition to the best-selling "In a Nutshell" series will immediately earn its place in any Python programmer's library.

There is a newer edition of this item:

Product details

  • ASIN ‏ : ‎ 0596001886
  • Publisher ‏ : ‎ O'Reilly Media, Inc.; 1st edition (January 1, 2003)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 600 pages
  • ISBN-10 ‏ : ‎ 9780596001889
  • ISBN-13 ‏ : ‎ 978-0596001889
  • Item Weight ‏ : ‎ 1.64 pounds
  • Dimensions ‏ : ‎ 6 x 1.14 x 9 inches
  • Customer Reviews:
    4.4 out of 5 stars 31 ratings

About the author

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

Discover more of the author’s books, see similar authors, read book recommendations and more.

Customer reviews

4.4 out of 5 stars
31 global ratings

Review this product

Share your thoughts with other customers

Top reviews from the United States

  • Reviewed in the United States on December 5, 2007
    Nutshell is rather dry reading and provides very little of the usual user-friendly introductions to language features by solving simple problems.

    Doesn't sound like that much of an endorsement, does it?

    Nevertheless, of my 6 or 7 Python books, (2 or 3 are generalist, rather than specialized), this is the only one I use regularly after 9 yrs of using Python.

    What Python in a Nutshell is really good at is showing you exactly what Python is capable of doing, feature by feature, in a thoroughly Pythonic way for the feature. With code and exact implication. For example, I know Python well but I am kinda lacking in metaclass comprehension. If I were to write some non-trivial meta-classes I would surely have its 3 or 4 pages open on my desk as I write code and skim through other internet postings. Those 3-4 pages have kinda made my brain shrivel every time I've looked at them, but they are the clearest overview I've seen of what is probably one of the hardest Python features to understand.

    For normal, easy-to-understand Python, Nutshell really dissects the languages with new insight. The information is dense, because each word has its place and there is very little filler. That's why skimming it does not work for me, I just don't have the requisite sustained attention span.

    Online docs? Again, this aims to distill Python's deeper implications. You won't find that in the basic online docs. You may find some equivalent, or perhaps better, explanations of specific features, say Python meta-classes, online by looking around in blogs and articles. But you will have to look around for a long while and you will likely encounter a bunch of less informative, or perhaps erroneous, stuff along the way.

    Python has a very easy learning curve, but it also has a whole lot of layers if you want to use it in the most efficient/natural manner. This is the book you want to help you dig. The surface, introductory aspects of Python are not well served by this book. Normal reference books are already not ideal for learning languages/systems, but its nature makes Nutshell an even worse choice. In fact, unlike some other reviewers, I would not at all recommend getting it to get acquainted with Python, unless you truly are a gifted programmer.

    Minor criticisms:

    The index could be improved a bit. For example, built-in functions are not listed directly: even an experienced coder might not know to look for 'getattr' or 'zip' under builtins. 2nd edition: the logging module's coverage is a bit trivial/weak, as was that of decorators. Both are subjects that would have greatly benefited from more of Alex's insights.
    4 people found this helpful
    Report
  • Reviewed in the United States on August 12, 2015
    the snake scares me on every single page
    One person found this helpful
    Report
  • Reviewed in the United States on December 16, 2004
    I bought this book after working through Learning Python by Lutz and Ascher, and reading sections of other books. It is now my #1 reference. The examples are few, but well chosen to do more than just demonstrate the language. They can show you why a particular syntax or technique is needed. Often I waste a lot of time learning something I don't really need, like lambda functions. By the time I have figured out that lambda functions are not some elegant new concept, just an awkward piece of syntax to do something simple, I've already spent too much time. Alternatively, I decide that something like metaclasses are a waste, and miss something really elegant and useful. Martelli's four pages on metaclasses capture better than anything I've read on the subject, exactly what metaclasses are good for and how they work.

    I think the dynamite combo for someone learning Python is both the Nutshell and the Learning book. I would read the Nutshell chapter first ( assuming you have a little background in programming ) then work problems in Learning Python until you are comfortable. Then re-read Nutshell, highlighting the key points you might need to re-learn in the midst of a rush project. Python in a nutshell is the best distillation of Python wisdom I have seen anywhere.
    13 people found this helpful
    Report
  • Reviewed in the United States on January 17, 2004
    Let me begin this review with a fair warning: this book is NOT for fresh programmers, hobbyists, system admins and other non-professional programmers out there, looking for a book that will actually help them LEARN Python language (even if the book has 4+ stars, it's still the O'Reilly Nutshell book).
    (Btw. I know that, because I fit in all previously mentioned categories :-).
    This book is (as title suggest) a QUICK reference of the Python language written by very competent author, I have no second thought about that, for already competent Python programmers that need good reference manual at hand.
    I dare to say, that terse writing style, lack of examples and hard to follow explanations on some topics (without clear and simple code examples) will put off most of the new or intermediate programmers.
    In my humble opinion this book is short for 200+ pages dedicated exclusively to code samples - I think examples in any reference book are as important as syntax and language explanations.
    If you're already experienced programmer then you'll be more than satisfied with this book, just go ahead an click the button. If you're, on the other hand, starting to learn Python and need a good learning guide, I would recommend, that you begin with the book "Learning Python, 2 Edition" from O'Reilly.
    48 people found this helpful
    Report
  • Reviewed in the United States on February 18, 2022
    I've had more than a few years of professional experience with other languages. Python is a new one for me that I wanted a quick reference to: get the basics of syntax and library function usage. As usual, Nutshell provides just that. There are other books that provide a more in-depth, beginners approach to Python but don't discount this book. It can exist side-by-side with those other books as quick reference (as the book cover states.)
  • Reviewed in the United States on May 8, 2015
    Nice general book for a good overview.
  • Reviewed in the United States on February 20, 2018

Top reviews from other countries

Translate all reviews to English
  • C. C. Williams
    5.0 out of 5 stars A masterpiece of style and economy
    Reviewed in the United Kingdom on July 2, 2003
    This is an incredibly good book and covers an enormous amount of ground. You get a potted history of the Python language, a language overview, a guide to OOP and exception handling, modular programming, file manipulation, string manipulation, database programming, threading, GUI development, web development and much, much more. Suprisingly, you can pretty much learn the Python language from the coverage in this book (which is generally not the case for Nutshell books which are aimed by-and-large at the technically savvy). Credit also to the author for his exceptionally clear and concise writing style (which is even more impressive when you consider that Italian is his first language). This may be the only Python book you'll ever need. Certainly it should be the first that you buy.
  • Gottfried Fiala
    5.0 out of 5 stars Gillt für alle gekaufte Artikel
    Reviewed in Germany on January 11, 2016
    Bewertung ist ausreichend. Sie können nicht erwarten, dass ich zu jedem Artikel eine Rezension mit langem Text schreibe. Ändern sie es bitte !
    Report
  • Matt
    5.0 out of 5 stars One of the best python books!
    Reviewed in the United Kingdom on May 9, 2014
    The in a nutshell series of books are fantastic. I've read the ones on JAVA, Linux etc and always found them beneficial. Python in a Nutshell is no exception and the content is much better than many Python books I have read. Great for BSc, Msc students or those within industry.
  • DaveG
    5.0 out of 5 stars Excellent value
    Reviewed in the United Kingdom on July 13, 2014
    Nutshell books are always densely packed and good value at the full price. This book was second hand at a vey low price, but in excellent condition. As it's not the most recent edition, it doesn't cover the latest developments in Python, but it does provide a good basic reference.
  • ruffrecords
    5.0 out of 5 stars The excellent writing style easily coveys the unique elegance of Python
    Reviewed in the United Kingdom on October 17, 2016
    Does not cover version 3 but most of the contents are still highly relevant. The excellent writing style easily coveys the unique elegance of Python.