CARVIEW |
By Mark Lutz, David Ascher
First Edition
April 1999
Pages: 384
ISBN 10: 1-56592-464-9 |
ISBN 13: 9781565924642
(Average of 6 Customer Reviews)
This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.
The latest edition is also available on Safari Books Online.
Learning Python is an introduction to the increasingly popular interpreted programming language that's portable, powerful, and remarkably easy to use in both stand-alone and scripting applications. This book thoroughly introduces the elements of Python: types, operators, statements, classes, functions, modules, and exceptions. It also demonstrates how to perform common programming tasks and write real applications.
Full Description
- It is available on all important platforms: Windows NT, Windows 95, Windows 98, Linux, all major UNIX platforms, MacOS, and even the BeOS.
- It is open-source software, copyrighted but freely available for use, even in commercial applications.
- Its clean object-oriented interface makes it a valuable prototyping tool for C++ programmers.
- It works well with all popular windowing toolkits, including MFC, Tk, Mac, X11, and Motif. Learning Python is written by Mark Lutz, author of Programming Python and Python Pocket Reference; and David Ascher, a vision scientist and Python user. This book starts with a thorough introduction to the elements of Python: types, operators, statements, classes, functions, modules, and exceptions. By reading the first part of the book, the reader will be able to understand and construct programs in the Python language. In the second part of the book, the authors present more advanced information, demonstrating how Python performs common tasks and presenting real applications and the libraries available for those applications. All the examples use the Python interpreter, so the reader can type them in and get instant feedback. Each chapter ends with a series of exercises. Solutions to the exercises are in an appendix.
Cover | Table of Contents | Colophon
Featured customer reviews
Learning Python Review, December 13 2003





I think this book is a great start for everyone who wants to program (not only Python, because I think Python is among the best languages to start with). I've quite a good programming background and it didn't bore me at all although it doesn't require any programming skills. Go for it!
Gerald
Learning Python Review, January 14 2003





For me the book was definitely a 5-bigeyed-critters read. However, I've had some exposure to Unix in various forms, shell programming, lots of C, and another interpreter with introspective capability (Forth!). Plus a little recreational reading and programming in OOP but no real professional committment to it yet.
Given this background, the book really hit the spot for me. Most of the knowledge required to understand the subtler points was in place, making it interesting and gratifying to plow through.
However, my rating of 3-bigeyed-critters is to indicate that it is probably to ambitious for a newbie learner (as has also been pointed out in another review). Perhaps there should be a "training-wheels" Python Boot Camp book that will give the real neophyte a better feel for the poles of functional and procedural programming between which basic Python seems to oscillate. This is not a slam against Python (I wish I could write something as good on the job, let alone in my spare time), but a frank recognition of its origin as a work-in-progress that was and continues to be molded over time.
I've never had as much quick payback from a book and language as I have with this book. When I saw that email capabilities were provided, I looked up an smtplib example on the Web and commandeered it for a Monte Carlo computation of the value of pi. Basically, you generate random coordinates in a square, count them and also the fraction that fall inside the inscribed circle. By comparing the hits in the circle to the hits in the square, you can arrive at a value for pi without resorting to calculus. It's a brute force approach, and it's not fun having to sit and watch the results scroll by on the screen, so I used smtplib to send me an email every billion iterations (one for each random pair of coordinates generated) with the latest (gradually improving) value for pi. Nice! Long integer support really helped with this, too. But I've never had a program of my own send me mail before: definitely worth the price of the book.
I had heard that Python was a good prototyping language some time ago, but was actually about to settle in and grind out something in C and VB/VBScript when I realized that Python had been installed on my Windows XP Home Edition without my even knowing it. I found out it was there after enabling Explorer display of hidden files and directories. There it was, Python 2.2, so I tried it out, verified that it worked, and then decided to get a book or two and learn more about it. "Learning Python" is my first exposure, with occasional excursions into the "Python Cookbook". Although I ordered the VBScript books from O'Reilly before I went off on this Python tangent, they will probably lie around unmolested until I've seen just what I can do in Python. I'll probably read them later and do something with them for résumé candy, but I expect that I'll probably reach for Python first even after I've done the VB thing.
Also very gratifying was the fact that in spite of only a little exposure to HTML and no knowledge at all of CGI, I was able to understand the HTML/CGI example which will feed into some browser-enabled projects I'm working on now. All in all, a great language and a great book to get started, if you've been around the block with computers and maybe a few other languages.
Thanks to the authors for this book, and thanks to O'Reilly for being there all these years with killer technical documentation. The publisher's reputation for excellence is why I reach for the books with the animals first. I wish there had been something doing this for the IBM 360 and its successors!
Publish on.
Learning Python Review, January 12 2003





I've owned this highly underrated book for close
to 3 years now and even though it covers only up
to Python 1.5.x, I would still recommend it as
*THE* book to use for learning Python. People
may complain of the slowgoing pace, but even as
an programmer with a lot of experience with other
languages (C, C++, Perl, PHP, Java, etc...), I went
through this book page by page and did most of the
exercises. The result was to solidify my knowledge
of Python. I recommend the same path to anyone who
wants to become really familiar with the language.
This is the most important book in my Python book
collection and I still browse through it whenever
I need to clarify certain concepts. I do wish a
2nd edition would come out covering the Python 2.x
features in much the same way they have been covered
in this book.
Learning Python Review, September 22 2002





This book, while very useful, is not what it seems or what the title claims. While I am fairly well versed in programming concepts and really like Python, the novice would do well to ignore the book's Title and introductory Prerequisites section that claims no background in programming is necessary. Get another book first. There is an assumption throughout the text that the user knows what different programming concepts are and has a basic undestadning of program flow, methods, OOP, etc. and even vague C++ knowledge would be helpful. My favorite example that appears is 2**X, with no previous mention of what this means--You know what it means if you know what it means. Python is an excellent introductory language, but use another book.
I love O'Reilly books for their logical layout and comprehensive and concise nature. "Learning Python" didn't fit the mold or quality I expected.
Andrew
Learning Python Review, June 04 2001





Ok -- so I am C/C++ and Java programmer and this was my first attempt at learning a scripting language. This book wasnt for me -- I found the Tutorial by Guido van Rossum that ships with the Python Distribution much more useful. Maybe this book will serve as a good reference or a doorstop. Better still -- can I have my money back !
-DoomDoom
Learning Python Review, September 22 2000





Once in a great while comes a programming book well-ordered enough for handy reference and pleasant enough to read while waiting in line. _Learning_Python_ is one of these. Although it would be easy to allow my enthusiasm for Python influence my opinion of the book, it is hardly necessary to do so. It compliments material found in the tutorial distributed with Python by building a foundation of basic knowledge needed to write good code and actually determine "where to go from here". It is appreciated.
Learning Python Review, July 07 1999
Submitted by anonymous [Respond | View]
I think that this book and the industrial strength "Programming Python" book are excellent;
they both use clear and concise language and useful graphical illustrations to reinforce concepts.
I must say after reading these two books and seeing the elegant power of the Python programming language
, I have become a "Python" convert. The object model is very clean and useful. I think Perl is a decent text parsing/
processing language but the documentation and some of the syntactic features are bit too obscure. The "Programming Perl 2nd
Edition" is written in a desultory and incomprehensible manner. I sincerely hope that Python will be used more extensively
by commercial enterprises in the very near future; I have become annoyed and bored using Perl to build CGI based Internet applications
Learning Python Review, June 30 1999
Submitted by Satish Sahasrabudhe [Respond | View]
The book is a good one generally.
But it lacks in practicality. It takes much time
in very basic things. They should have covered
topics like...
...howto use Python to replace shell scripts
...howto execute commands in Unix so as to automate tasks etc...
I would have preferred to have more coverage on stuff
like above, since I am not a full-time programmer.
Once I play around with quick recipes, then I can
go ahead and do more serious stuff.
Learning Python Review, June 27 1999
Submitted by Max F Lang [Respond | View]
Very nice book, and a good complement to ProgPyth, a (much) larger and somewhat difficult book to learn the language from. Very much in the same humor as the Learning Perl book
and as enjoyabe to learn from. That's a good tie-in, BTW: The ProgPerl book has a camel, and the LPerl book has a llama, which in most aspects is just a small camel (with the same
crappy attitude). While the wood rat makes sense, it is just the right size to be the perfect snack for a hungry python, I thought this would make even more sense. There is a small green
snake in the South US that lives almost all of its life in oak trees eating bugs and being chased around by birds. It is just the perfect python-wannabee. It would want to be a python if it
could just grow up! Much like the beginning Python hacker...
Learning Python Review, May 09 1999
Submitted by Mike T. [Respond | View]
Having never been exposed to Python before
this book gave me all the details to get started.
Python is remarkable in that it borrows heavily/re-invents tools from C++'s Standard
Template Library and Perl, among other places. The syntax is remarkably powerful and clear.
The existance of a meriad of standard modules to
assist with various protocol interactions
is great.
I look forward to using Python as a complement to
and sometimes a superset of Perl.
Learning Python Review, May 05 1999
Submitted by John Alexander [Respond | View]
O'reilly has filled a huge gap in Python manuals
by releasing the "Learning Python" Book.
I have the Rossum/Ahlstrom/Watters book,
which is very good also. However the "Internet
Programming with Python" book caters to the
experienced user and is a little hard to follow
for someone new to Python. Finally, there is a
book that caters to the beginner/intermediate
programmer. I highly recommend that everyone new
to Python read the "Learning Python" book first,
and then follow up with one of the more advanced
texts.
Learning Python Review, May 03 1999
Submitted by Moritz Moeller-Herrmann [Respond | View]
I read the first 200 pages.
Very readable, very detailed. I like it.
Maybe a little bit too basic for the experienced programmer
(who might be better off with programming python). It was more or less right for me, though.
Very good to learn programming.
A python was not chosen as cover because it was taken for some other book.
The responsible should be fired!!
Learning Python Review, April 14 1999
Submitted by John Krewson [Respond | View]
I don't have a book review, but there is already a Python
programming book with a Python on the cover. I am
not sure, but it stands to reason that the rodent
is representative of a prey of the snake. With this
is mind, I would hazard a guess that Learning Python
is smaller than the huge! Python programming book.
Learning Python Review, April 13 1999
Submitted by Jason A Chase [Respond | View]
I have yet to read this book but I did read an interesting
article concerning how ORA chooses the animal for the
front cover. Is it just me or does anyone else thing they
should have put a python
as in the snake on the cover?
It just seems like a no brainer.
Jason
Learning Python Review, December 21 1997
Submitted by Pankil Richards [Respond | View]
Start Here!
W H A T A N A M A Z I N G book!
If you are new to programming, i.e., have been buying
books left and right trying to find the "right" one,
this is it!
Ofcourse this is purely subjective, BUT!...I am new
to Linux and very new to progamming, and have tried
reading through numerous scripting/system programming
books, and got frustrated a couple of pages into the
first few chapters (the exception being this one, and
Beginning Java 2 from Wrox).
Learning Python is tailored fit for the newbie-
programmer-wannabe. I have also "tried" Learning
Perl, but found the authors assumed a bit too much
for someone who is supposed to be at the "newbie
learning" stage. I felt they weren't able to
explain OOP concepts, as well as programming in general,
the way I would understand, and the way Learning Python has.
The https://www.python.org site also has good stuff.
BTW, "Always look on the bright side..."
Media reviews "There's 'Learning Python' by Mark Lutz and David Ascher, which is one of the best books for learning the language. It starts with the language basics, passes through object programming and winds up with some useful and instructive examples that demonstrate complicated application techniques. It also contains a good introduction a a cool version of Python implemented in Java called Jython."
--Mark Gibbs, "Network World," July 21, 2003
"If the language had manuals, they would undoubtedly be the texts from O'Reilly & Associates...'Learning Python' and 'Programming Python' are definitive treatments."--Andrew Binstock, SD Times, May 15, 2003
https://www.sdtimes.com/cols/middlewatch.htm
"Get the O'Reilly book 'Learning Python' by Mark Lutz and David Ascher, which will give you a good feel for the language and get you started if you want to learn it."
-- Jerry Pournell, Byte.com March 4, 2002
Read all reviews
About O'Reilly | Contact | Jobs | Press Room | How to Advertise | Privacy Policy
|
© 2008, O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.