Learning Python

Front Cover
"O'Reilly Media, Inc.", Dec 23, 2003 - Computers - 624 pages
20 Reviews

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.


What people are saying - Write a review

User ratings

5 stars
4 stars
3 stars
2 stars
1 star

LibraryThing Review

User Review  - dpevers - LibraryThing

Very much in line with my learning style, and consistent in approach with other O'Reilly books. A good introduction to Python programming, especially for someone with some programming experience in ... Read full review

Review: Learning Python

User Review  - Nick - Goodreads

Covers a lot of good material about the language, but in a tedious, verbose and redundant way. I learned quite a bit, but it took real wherewithal to get through the book. Read full review

Selected pages


How Python Runs Programs
How You Run Programs
Part II
Lists and Dictionaries
Tuples Files and Everything Else
Part III
Advanced Module Topics
Part VI
The Big Picture
Class Coding Basics
Class Coding Details
Designing with Classes
Advanced Class Topics
Part VII

Assignment Expressions and Print
if Tests
while and for Loops
Documenting Python Code
Part IV
Function Basics
Scopes and Arguments
Advanced Function Topics
Part V
The Big Picture
Module Coding Basics
Module Packages
Exception Basics
Exception Objects
Designing with Exceptions
Common Tasks in Python
Python Resources
Part IX
Installation and Configuration
Solutions to Exercises

Other editions - View all

Common terms and phrases

References to this book

All Book Search results »

About the author (2003)

Mark Lutz is a leading Python trainer, the author of Python s earliest and best-selling texts, and a pioneering figure in the Python world.Mark is the author of the three O Reilly books: "Learning Python", "Programming Python", and "Python Pocket Reference", all currently in fourth or fifth editions. He has been using and promoting Python since 1992, started writing Python "books" in 1995, and began teaching Python "classes" in 1997. As of Spring 2013, Mark has instructed 260 Python training sessions, taught roughly 4,000 students in live classes, and written Python books that have sold 400,000 units and been translated to at least a dozen languages.Together, his two decades of "Python" efforts have helped to establish it as one of the most widely used programming languages in the world today. In addition, Mark has been in the software field for 30 years. He holds BS and MS degrees in computer science from the University of Wisconsin where he explored implementations of the Prolog language, and over his career has worked as a professional software developer on compilers, programming tools, scripting applications, and assorted client/server systems.Mark maintains a training website ("http: //learning-python.com") and an additional book support site on the Web ("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.

Bibliographic information