Buy new:
$29.53$29.53
Arrives:
Friday, May 12
Ships from: Amazon Sold by: FirstSnowball
Buy used: $19.09
Other Sellers on Amazon
+ $20.28 shipping
84% positive over lifetime
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Learning Python, Second Edition Second Edition
| Price | New from | Used from |
- Kindle
$17.91 Read with Our Free App - Paperback
$19.09 - $29.5325 Used from $3.59 8 New from $14.81
Purchase options and add-ons
Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications. Python is considered easy to learn, but there's no quicker way to mastery of the language than learning from an expert teacher. This edition of Learning Python puts you in the hands of two expert teachers, Mark Lutz and David Ascher, whose friendly, well-structured prose has guided many a programmer to proficiency with the language.
Learning Python, Second Edition, offers programmers a comprehensive learning tool for Python and object-oriented programming. Thoroughly updated for the numerous language and class presentation changes that have taken place since the release of the first edition in 1999, this guide introduces the basic elements of the latest release of Python 2.3 and covers new features, such as list comprehensions, nested scopes, and iterators/generators.
Beyond language features, this edition of Learning Python also includes new context for less-experienced programmers, including fresh overviews of object-oriented programming and dynamic typing, new discussions of program launch and configuration options, new coverage of documentation sources, and more. There are also new use cases throughout to make the application of language features more concrete.
The first part of Learning Python gives programmers all the information they'll need to understand and construct programs in the Python language, including types, operators, statements, classes, functions, modules and exceptions. The authors then present more advanced material, showing how Python performs common tasks by offering real applications and the libraries available for those applications. Each chapter ends with a series of exercises that will test your Python skills and measure your understanding.
Learning Python, Second Edition is a self-paced book that allows readers to focus on the core Python language in depth. As you work through the book, you'll gain a deep and complete understanding of the Python language that will help you to understand the larger application-level examples that you'll encounter on your own. If you're interested in learning Python--and want to do so quickly and efficiently--then Learning Python, Second Edition is your best choice.
- ISBN-100596002815
- ISBN-13978-0596002817
- EditionSecond
- PublisherO'Reilly Media
- Publication dateJanuary 2, 2004
- LanguageEnglish
- Dimensions7 x 1.11 x 9.19 inches
- Print length552 pages
Products related to this item
Editorial Reviews
About the Author
Mark Lutz is an independent Python trainer, writer, and software developer, and is one of the primary figures in the Python community. He is the author of the O'Reilly books Programming Python and Python Pocket Reference (both in 2nd Editions), and co-author of Learning Python (both in 2nd Editions). Mark has been involved with Python since 1992, began teaching Python classes in 1997, and has instructed over 90 Python training sessions as of early 2003. In addition, he holds BS and MS degrees in computer science from the University of Wisconsin, and over the last two decades has worked on compilers, programming tools, scripting applications, and assorted client/server systems. Whenever Mark gets a break from spreading the Python word, he leads an ordinary, average life with his kids in Colorado. Mark can be reached by email at , or on the web at http://www.rmi.net/~lutz.
David Ascher is the lead for Python projects at ActiveState, including Komodo, ActiveState's integrated development environment written mostly in Python. David has taught courses about Python to corporations, in universities, and at conferences. He also organized the Python track at the 1999 and 2000 O'Reilly Open Source Conventions, and was the program chair for the 10th International Python Conference. In addition, he co-wrote Learning Python (both editions) and serves as a director of the Python Software Foundation. David holds a B.S. in physics and a Ph.D. in cognitive science, both from Brown University.
Product details
- Publisher : O'Reilly Media; Second edition (January 2, 2004)
- Language : English
- Paperback : 552 pages
- ISBN-10 : 0596002815
- ISBN-13 : 978-0596002817
- Item Weight : 1.9 pounds
- Dimensions : 7 x 1.11 x 9.19 inches
- Best Sellers Rank: #2,762,068 in Books (See Top 100 in Books)
- #495 in Macintosh Operating System
- #1,513 in Object-Oriented Design
- #2,716 in Python Programming
- Customer Reviews:
About the authors

Mark Lutz is the author of Python's classic and foundational texts, a former trainer with two decades of experience teaching Python to newcomers, and one of the people responsible for the prominence that Python enjoys today. For more info, see the author's books and programming site at learning-python.com.

Discover more of the author’s books, see similar authors, read author blogs and more
Related products with free delivery on eligible orders Sponsored Hide feedback | Try Prime for unlimited fast, free shipping
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The rest of the review is about the second edition:
I would never try to use this book as a reference. It was not designed and it's not good for that.
It was designed as your first book on Python, especially if this is your first programming language. As such, it gives you a really thorough and extensive introduction written by a renowed authority. The parts on functional programming, Python's OOP and modules lay the solid foundation for the future Python programmer. Beware though: compared to similar "foundation" books in other languages' realms, this one is slow-paced, limited in scope, wordy and even redundant at times.
If you already know a language like C++, Java or Perl, and especially if you've already written some Python code, then this book is not your best choice: it will seem terribly slow paced, tedious, bloated and of no value as a reference (which is what an experienced programmer like you really needs most of the time). In this case, you could use a short and freely available tutorial like Guido's, then a good reference book like Python in a Nutshell and maybe some more advanced books like Python Cookbook and Python 2.1 Bible (provided there will be a new edition).
As an intermediate or experienced programmer, you may still benefit from Lutz's "textbook". You may want to skim quickly through the first 3 Parts (which make 180 pages of beginner's stuff you've learned in highschool, decorated with the occasional gem toward the end of some chapters), then slow down a bit for the rest of the book and pay special attention to chapters 14, 17, 18, 21, 22, 23, and 27. This book has too many chapters for my taste, btw.
Part VIII, written by another authority (David Ascher), is a little too short and still bad for reference. In the next edition, I hope it will be expanded to a reasonable level of detail. I found the coverage of regular expressions particularly disappointing -- probably because they are covered by Mr Lutz's other book, Programming Python, which was supposed to be your second book. The exercises at the end of each Part are not the most interesting and useful I know of.
For example, while I was mid-way through the book, I wanted to quickly check what kind of comments Python supported. Does it support only one kind (line comments), or like C++ and Java has two kinds (line and block) ? So, I checked the contents - I was searching for a chapter called something like "lexical structure", or even "comments". No luck. (However, I did find a chapter called "Clicking Windows File Icons" ... - very useful! )
I didn't give up. Next step, check the index. "Comments" are mentioned three times in the book. The first time in the chapter "Basic Operations and Variables" (good choice!!!) - one kind of comment is described briefly in a paragraph with no relation to the rest of the chapter. Sadly, no answer to my question there.
The second time is in a chapter titled "Python Syntax Rules". Hmm, that makes more sense. Well, technically not, since comments are not part of the syntax, but let's not get technical ... Here it says that comments are ignored. Good to know. But how many kinds of comments are there ???
The third mention of comments is in the chapter "Documenting Pyhton Code". "Finally!", I say to myself and naively rush through the pages. Alas, no luck again. It says that "#" comments are a way to document code, but again it doesn't say if they are the only kind of comment, or if there are others.
By this time it is probably implied that there is no other kind of comments, since it is never never mentioned, however one SHOULD NOT have to guess about such things when reading a technical book.
I went ahead and checked the online Python documentation at [...] . It took me 5 seconds to find "Lexical analysis", "Comments" and read what I needed. Why did I bother with the book ??
In defense of the book, I must say that it is not all bad. It does sucesssfully teach you to program in Python, even though it is strongly geared to inexperienced programmers (and thus annoying at places). However you absolutely need one more source of reference for Python, and if you have that, why buy this book ?
It is nothing like "The Java Programming Language", which in my mind is an example of an excellent language book and reference.
Top reviews from other countries
I'm about 40% through the book and we've only just covered function calls, and nothing OO. There's only been 4 or 5 new concepts so far that aren't identical to other common languages.
The author does go some way towards saying "this is similar to the C idea of ..." or "those familiar with C++ will recognise the similarities...". But what would be really useful would be a big bar next to the few concepts that are fundamentally different, saying "!!!Python Specific!!!" or something.
Having said that, there's few typos and the writing style is reasonable. I'd like to give it 3.5 stars really.
eigentlich wollt ich mir dieses Buch nicht kaufen, da ich doch einige Kritiken las, die die erste Ausgabe 1999 gekauft hatten und mit der zweiten Auflage dann unzufrieden waren.
Aber für mich als Erstbetrachter der 2.Auflage bot sich eine total andere Sicht. Ich muss einfach sagen das die Aufteilung, die Formatierung, die Beispiele, der Umfang und die Gründlichkeit dieses Buch sehr wertvoll machen.
Man macht auf jeden fall einen gründlichen, interessanten Einstieg. Ich möchte gar keine Seite auslassen, es ist einfach zu spannend.
Habe schon Bücher über Perl, C++, Bash mir zugelegt aber dieses liegt einfach an der Spitze. Natürlich fliesst auch dabei ein dass Pythen übersichtlich und mächtig ist.
Also super gelungen und vor allem für Neulinge ( auch nicht ganz so neue ) die den ersten Band noch nicht gelesen haben absolut super.
Ein Genuss
Carl r.
Les concepts sont présentés clairement et les exemples sont bien choisis.
La partie dédiée à Ttinker est elle réellement pauvre.