Please consider the latest edition.
-
The Core Language
-
Chapter 1 Getting Started
- Why Python?
- How to Run Python Programs
- A First Look at Module Files
- Python Configuration Details
- Summary
- Exercises
-
Chapter 2 Types and Operators
- Python Program Structure
- Why Use Built-in Types?
- Numbers
- Strings
- Lists
- Dictionaries
- Tuples
- Files
- General Object Properties
- Built-in Type Gotchas
- Summary
- Exercises
-
Chapter 3 Basic Statements
- Assignment
- Expressions
- if Tests
- while Loops
- for Loops
- Common Coding Gotchas
- Summary
- Exercises
-
Chapter 4 Functions
- Why Use Functions?
- Function Basics
- Scope Rules in Functions
- Argument Passing
- Odds and Ends
- Function Gotchas
- Summary
- Exercises
-
Chapter 5 Modules
- Why Use Modules?
- Module Basics
- Module Files Are Namespaces
- Import Model
- Reloading Modules
- Odds and Ends
- Module Gotchas
- Summary
- Exercises
-
Chapter 6 Classes
- Why Use Classes?
- Class Basics
- Using the Class Statement
- Using Class Methods
- Inheritance Searches Namespace Trees
- Operator Overloading in Classes
- Namespace Rules: The Whole Story
- Designing with Classes
- Odds and Ends
- Class Gotchas
- Summary
- Exercises
-
Chapter 7 Exceptions
- Why Use Exceptions?
- Exception Basics
- Exception Idioms
- Exception Catching Modes
- Odds and Ends
- Exception Gotchas
- Summary
- Exercises
-
-
The Outer Layers
-
Chapter 8 Built-in Tools
- Aside: The sys Module
- Built-in Functions
- Library Modules
- Exercises
-
Chapter 9 Common Tasks in Python
- Data Structure Manipulations
- Manipulating Files
- Manipulating Programs
- Internet-Related Activities
- Bigger Examples
- Exercises
-
Chapter 10 Frameworks and Applications
- An Automated Complaint System
- Interfacing with COM: Cheap Public Relations
- A Tkinter-Based GUI Editor for Managing Form Data
- Design Considerations
- JPython: The Felicitous Union of Python and Java
- Other Frameworks and Applications
- Exercises
-
-
Appendixes
-
Appendix A Python Resources
- The Python Language Web Site
- Python Software
- Python Documentation and Books
- Newsgroups, Discussion Groups, and Email Help
- Conferences
- Support Companies, Consultants, Training
- Tim Peters
-
Appendix B Platform-Specific Topics
- Unix
- Windows-Specific Information
- Macintosh-Specific Information
- Java
- Other Platforms
-
Appendix C Solutions to Exercises
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
-
-
Colophon
- Title:
- Learning Python
- By:
- Mark Lutz, David Ascher
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- April 1999
- Pages:
- 384
- Print ISBN:
- 978-1-56592-464-2
- | ISBN 10:
- 1-56592-464-9
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Learning Python is a wood rat (Neotoma, family Muridae). The wood rat lives in a wide range of living conditions (mostly rocky, scrub, and desert areas) over much of North and Central America, generally at some distance from humans, though they occasionally damage some crops. They are good climbers, nesting in trees or bushes up to six meters off the ground; some species burrow underground or in rock crevices or inhabit other species' abandoned holes.
These greyish-beige, medium-sized rodents are the original pack rats: they carry anything and everything into their homes, whether or not it's needed, and are especially attracted to shiny objects such as tin cans, glass, and silverware. Mary Anne Weeks Mayo was the production editor and copyeditor of Learning Python; Sheryl Avruch was the production manager; Jane Ellin, Melanie Wang, and Clairemarie Fisher O'Leary provided quality control. Robert Romano created the illustrations using Adobe Photoshop 5 and Macromedia FreeHand 8. Mike Sierra provided FrameMaker technical support. Ruth Rautenberg wrote the index.
Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with QuarkXPress 3.32 using the ITC Garamond font. Whenever possible, our books use RepKover(TM), a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding is used.
The inside layout was designed by Nancy Priest and implemented in FrameMaker 5.5 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. This colophon was written by Nancy Kotary.
