Outline

Chapter 1: An Introduction to Python
  1. Introduction
  2. A Brief History of Python
  3. Python Versions
  4. Installing Python
  5. Environment Variables
  6. Executing Python from the Command Line
  7. IDLE
  8. Editing Python Files
  9. Python Documentation
  10. Getting Help
  11. Dynamic Types
  12. Python Reserved Words
  13. Naming Conventions
Chapter 2: Basic Python Syntax
  1. Basic Syntax
  2. Comments
  3. String Values
  4. String Methods
  5. The format Method
  6. String Operators
  7. Numeric Data Types
  8. Conversion Functions
  9. Simple Output
  10. Simple Input
  11. The % Method
  12. The print Function
Chapter 3: Language Components
  1. Indenting Requirements
  2. The if Statement
  3. Relational and Logical Operators
  4. Bit Wise Operators
  5. The while Loop
  6. break and continue
  7. The for Loop
Chapter 4: Collections
  1. Introduction
  2. Lists
  3. Tuples
  4. Sets
  5. Dictionaries
  6. Sorting Dictionaries
  7. Copying Collections
  8. Summary
Chapter 5: Functions
  1. Introduction
  2. Defining Your Own Functions
  3. Parameters
  4. Function Documentation
  5. Keyword and Optional Parameters
  6. Passing Collections to a Function
  7. Variable Number of Arguments
  8. Scope
  9. Functions - "First Class Citizens"
  10. Passing Functions to a Function
  11. map
  12. filter
  13. Mapping Functions in a Dictionary
  14. Lambda
  15. Inner Functions
  16. Closures
Chapter 6: Modules
  1. Modules
  2. Standard Modules - sys
  3. Standard Modules - math
  4. Standard Modules - time
  5. The dir Function
Chapter 7: Exceptions
  1. Errors
  2. Runtime Errors
  3. The Exception Model
  4. Exception Hierarchy
  5. Handling Multiple Exceptions
  6. raise
  7. assert
Chapter 8: Input and Output
  1. Introduction
  2. Data Streams
  3. Creating Your Own Data Streams
  4. Access Modes
  5. Writing Data to a File
  6. Reading Data From a File
  7. Additional File Methods
  8. Using Pipes as Data Streams
  9. Handling IO Exceptions
  10. Working with Directories
  11. Metadata
  12. The pickle Module
Chapter 9: Classes in Python
  1. Classes in Python
  2. Principles of Object Orientation
  3. Creating Classes
  4. Instance Methods
  5. File Organization
  6. Special Methods
  7. Class Variables
  8. Inheritance
  9. Polymorphism
  10. Type Identification
  11. Custom Exception Classes
Chapter 10: Regular Expressions
  1. Introduction
  2. Simple Character Matches
  3. Special Characters
  4. Character Classes
  5. Quantifiers
  6. The Dot Character
  7. Greedy Matches
  8. Grouping
  9. Matching at Beginning or End
  10. Match Objects
  11. Substituting
  12. Splitting a String
  13. Compiling Regular Expressions
  14. Flags
Chapter 11: Data Structures
  1. List Comprehensions
  2. Nested List Comprehensions
  3. Dictionary Comprehensions
  4. Dictionaries with Compound Values
  5. Processing Lists in Parallel
  6. Specialized Sorts
  7. Time Functionality
  8. Generators
Chapter 12: Writing GUIs in Python
  1. Introduction
  2. Components and Events
  3. An Example GUI
  4. The Tk Widget
  5. Button Widgets
  6. Entry Widgets
  7. Text Widgets
  8. Checkbutton Widgets
  9. Radiobutton Widgets
  10. Listbox Widgets
  11. Frame Widgets
  12. Menu Widgets
  13. Toplevel Widgets
  14. Dialogs
Chapter 13: Python and CGI Scripts
  1. What is CGI
  2. HTML
  3. HTML Forms
  4. A Guestbook Application
  5. What Can Go Wrong!
  6. HTML Tables
  7. The CGI Script
  8. Rendering of the Script
Chapter 14: The os module
  1. The Environment
  2. Creating a Process
  3. Listing Files
  4. Other Process Methods
  5. File Information (Metadata)
  6. Working With Directories
Chapter 15: Network Programming
  1. Networking Fundamentals
  2. The Client/Server Model
  3. The socket Module
  4. A Client Program
  5. A Server Program
  6. An Evaluation Client and Server
  7. A Threaded Server
Chapter 16: Python and Databases
  1. Introduction
  2. DBM Operations
  3. Pickling
  4. Pickling with Complex Objects
  5. Shelves
  6. Using sqlite3
  7. Executing Queries
  8. Table Descriptions
  9. Writing Database Scripts