Library of Math
Online Math Organized by Subject Into Topics
  

BookStore

Online Math

Learning Python, Second Edition

Learning Python, Second Edition

enlarge enlarge 
Authors: Mark Lutz, David Ascher
Publisher: O'Reilly Media, Inc.
Category: Book

List Price: $39.99
Buy New: $5.82
You Save: $34.17 (85%)



New (10) Used (19) from $2.99

Rating: 4.0 out of 5 stars 121 reviews
Sales Rank: 215069

Format: Illustrated
Media: Paperback
Edition: 2
Pages: 552
Number Of Items: 1
Shipping Weight (lbs): 1.9
Dimensions (in): 9.1 x 7 x 1.3

ISBN: 0596002815
Dewey Decimal Number: 005.133
EAN: 9780596002817

Publication Date: December 2003
Availability: Usually ships in 1-2 business days
Shipping: Expedited shipping available
Shipping: International shipping available
Condition: New Publisher's Overstock! May have a small remainder mark. We provide delivery confirmation emails that includes tracking numbers on all domestic orders.

Similar Items:

  • Python Cookbook
  • Programming Python
  • Python in a Nutshell, Second Edition (In a Nutshell (O'Reilly))
  • Python Pocket Reference (Pocket Reference (O'Reilly))
  • Learning Perl, Second Edition

Editorial Reviews:

Amazon.com Review
The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.

First off, Learning Python shows the relationships among Python scripts and their interpreter (in a mostly platform-neutral way). Then, the authors address the mechanics of the language itself, providing illustrations of how Python conceives of numbers, strings, and other objects as well as the operators you use to work with them. Dictionaries, lists, tuples, and other data structures specific to Python receive plenty of attention including complete examples.

Authors Mark Lutz and David Ascher build on that fundamental information in their discussions of functions and modules, which evolve into coverage of namespaces, classes, and the object-oriented aspects of Python programming. There's also information on creating graphical user interfaces (GUIs) for Python applications with Tkinter.

In addition to its careful expository prose, Learning Python includes exercises that both test your Python skills and help reveal more elusive truths about the language.

Product Description
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.



Customer Reviews:   Read 116 more reviews...

5 out of 5 stars Good even for experienced...   January 26, 2004
Wayne Folta (Washington, DC)
92 out of 99 found this review helpful

I was a programmer for 15+ years and used Perl for 8 or so of those years, so although I'm a newcomer to Python I'm definitely not a newcomer to programming or to scripting languages. When I ordered this book, I was worried that it might be too basic, but the more advanced O'Reilly Python books have not been updated to Python 2.2/2.3, so I ordered Learning Python anyhow.

And now that I've read it, I can highly recommend it even for experienced programmers. You will have to skim over basics in various chapters, but it's well-written and covers many topics, including 5-10 pages on 2.2's new-style classes, including static and class methods, instance slots, class properties, and __getattribute__.

It refers you to Python's documentation for the details of complex topics, but still gives you an idea of the concepts in play. For example, after a couple of paragraphs on instance slots, it says,

"... Slots are something of a break with Python's dynamic nature, which dictates that any name may be created by assignment. They also have additional constraints and implications that are far too complex for us to discuss here (e.g. some instances with slots may not have an attribute dictionary __dict__); see Python 2.2 release documents for details."

Which I think is a good compromise. They don't fill the book with details, but they don't simply wave their hands and give you no clue as to issues outside the scope of the book.

It is well-written and well-organized. It covers the core language well and gives a good taste for standard packages and many other tools including things like Pyrex and ctype.

(And you won't be disappointed with Python itself. A great language!)


5 out of 5 stars Excellent introduction to Python   February 24, 2000
Alessandro Bottoni (Ferrara Italy)
94 out of 102 found this review helpful

Together with "Perl: the programmer's companion", by Nigel Chapman, this is one of the best introductory book I ever read. If you already know "Programming Python", the previous book of Mark Lutz on Python, and are concerned about the possibility that this book was just another messy collection of concepts and tips, relax: this is a completely different object. "learning Python" is a well-designed, well-written and concise book. It gives you all you need to write system administration utilities, Internet-related programs and other small applications. (Should you need a book on TKinter, the standard GUI module of Python, buy "Python and TKinter programming", by John Grayson, Manning publisher).

Consider to buy this book because:

- It is clear and well written. No struggles to understand the basic concepts and having the first programs running.

- It is well-designed and well-structured. You can find the info you need in a snap.

- You get a real understanding of Python, not only a description of its nice features.

- It is concise. In a day or two you will be coding in Python.

- It is a very good guide to keep on your desk. It is the missing part of the online documentation.

- In describes how to perform the most common task with Python. You will not have to reinvent any wheel.

- It describes a few important modules of Python: JPython, TKinter and COM. You can get a feeling of what you can do with Python (but, to go further, you will have to read the online documentation and perform a few experiments by yourself).

Python is a very smart language and deserved a better book than "Programming Python". This is that book.


5 out of 5 stars A great intro to Python   October 26, 2003
Sameer
7 out of 9 found this review helpful

Even after the recent introduction of dozen or so python books in the last few months, Learning Python still remains one of the best, if not the best, resources to start learning about Python. I owned this book for a period of a year and a half after my introduction to Python. During most of that time, I often referred back to it, and I can say that this book was indespensible during that early period of Python features experimentation.

This brings up a good point: the intended audience for this book are people who are just starting out with Python. If you are already familiar with Python, and have a year or so of experience under your belt, try Python in a Nutshell, Text Processing in Python and the excellent reference book: Python Essential Reference.


5 out of 5 stars This should be your first Python book!   March 8, 2006
John Salerno (Hoboken, NJ USA)
8 out of 12 found this review helpful

This is simply a stellar introduction to the Python language, for both newcomers to programming and those who are already proficient in another language. I know there are several choices for 'beginning' type Python books, and you may be tempted to choose a different one because it is newer than this one, but please understand that you lose nothing by reading this book instead. It covers Python 2.3 (which is just short of the current 2.4), and there are only a couple of items not referred to (e.g. decorators and decimals). But you can easily read up on the latest features online. The benefits of this book far outweigh the fact that it was published a few years ago!

Here is the true advantage of Learning Python: the authors describe the language in complete detail from the ground up. They begin with how to use the interactive interpreter and IDLE, and then move on to built-in data types. Every single thing that could be considered a 'component' of the Python language gets its own chapter (numbers, strings, lists, etc.), and the larger components (functions, modules, classes, etc.) each get their own Part (which is further divided into chapters). In other words, they take plenty of time to describe everything you need to know about everything in the language. You won't finish learning the core language until well into the 400-range of pages.

Another intro Python book that I just began reading has already covered numbers, arithmetic operators, functions, modules, and a few other things, all by page 20! I won't name the book yet, because I'm not fairly deep enough in it yet. But this is certainly not good for a newcomer.

Don't even wonder about other books! Learning Python covers every aspect of the language in great detail, yet at the same time remains intelligent (e.g. it does not explain to you what variables in general are (hopefully you have a basic understanding of programming already), but it explains in great detail what variables *in Python* are). After you read this book, you will have an amazing foundation in Python.



5 out of 5 stars Succinct Yet Thorough Intro To Python For Programmers   June 19, 2001
25 out of 30 found this review helpful

Mark Lutz and David Ascher deliver precisely the needed information to meet the objective stated on the cover of the O'Reilly text, "Learning Python" (Help for Programmers).

A succinct, yet thorough treatment of the Python programming language is presented in some 350-plus written pages that are well organized and facilitate the development of Python programs in a "Read and Code as You Go" fashion.

After spot reading the Chapters on "Getting Started", "Types And

Operators", "Basic Statements", "Functions", "Modules" and "Common Tasks In Python", I was coding and running my first text file I/O Python programs within the first half of a day. The authors concise presentation of the concepts definitely facilitated the "learning curve", which so often is an obstacle when learning a new programming language. The material was also indexed very well with clear index descriptions to easily determine what the topic was and where to find it.

What I found to be the strongest point of the book were the "Gotchas" sections, in which the authors discussed topics such as Python Language Constructs, Program Class Usage and Coding Practices to be aware of. I found the "Common Coding Gotchas" section at the end of Chapter 3 of great benefit in coding and debugging my first self-authored Python programs (As I learned, Python is definitely a language where you want to indent consistently, avoid the mixing of blank spaces with tabs and not forget the use of colons to denote decision logic). The application of these concepts alone were a great asset in reducing the "Learning Curve" for me.

The program examples provided reinforced the clear, concise concepts presented by the authors. The programs that I studied were suited to running in both a Linux environment (using Linux Python Version 1.5.2 for SuSE(tm) Linux 7.0 and Red Hat(tm) Linux 6.1) and MS Windows(tm) NT/98 (using Active State's Active Python(tm) Version 2.1).

Exercises presented at the end of the chapter were effective at reinforcing the programming concepts presented. With some supplemental tutorial material for non-programmers, this book could be used as an educational text for a Python programming class, particularly one geared for programmers with scripting language experience.

The authors did a good job of covering a number of topics important to application programmers. Object-oriented Constructs, Manipulation of String Objects, Operating System Module Use, GUI Programming Component Frameworks and Applications such as Tkinter and JPython are discussed to provide the reader a good exposure to the extent of the Python language implementation and its strenght as a robust, object-oriented scripting language.

The book is definitely an invaluable resource for providing the essential material necessary to construct your first Python programs, especially if you've had prior programming experience with other scripting languages, such as REXX, Javascript or Perl.

Definitely one of the best O'Reilly publications I've read to date. Kudos to Mr. Lutz and Mr. Ascher for their contribution to making the experience of "Learning Python" a fun and productive pursuit. Five Stars!

 

Library of Math. Online Math Organized by Subject Into Topics. © 2008 www.libraryofmath.com All rights reserved.