Preface
This book provides an introduction to the Python programming language. Python is a popular object-oriented language used for both standalone programs and scripting applications in a variety of domains. It is free, portable, powerful, and remarkably easy to use.
Whether you are new to programming or a professional developer, this book’s goal is to bring you up to speed on the core Python language in a hurry.
About This Second Edition
In the four years after the first edition of this book was published in late 1998, there have been substantial changes in both the Python language and in the topics presented by the authors in Python training sessions. Although we have attempted to retain as much of the original version as possible, this new edition reflects recent changes in both Python and Python training.
On the language front, this edition has been thoroughly updated to reflect Python 2.2, and all changes to the language since publication of the first edition. In addition, discussion of anticipated changes in the upcoming 2.3 release have been incorporated throughout. Some of the major language topics for which you’ll find new or expanded coverage in this edition are:
List comprehension (Chapter 14)
Class exceptions (Chapter 25)
String methods (Chapter 5)
Augmented assignment (Chapter 8)
Classic, true, and floor division (Chapter 4)
Package imports (Chapter 17)
Nested function scopes (Chapter 13)
Generators and iterators (Chapter 14)
Unicode strings (Chapter 5)
Subclass types (Chapter ...