1.4. Downloading and Installing Python
2.1. Program Output, the print
Statement, and “Hello World!”
2.2. Program Input and the raw_input()
Built-in Function
2.10. Code Blocks Use Indentation
2.13. for
Loop and the range()
Built-in Function
2.15. Files and the open()
and file()
Built-in Functions
3.7. Related Modules/Developer Tools
4.6. Standard Type Built-in Functions
4.8. Categorizing the Standard Types
5.3. Double Precision Floating Point Numbers
5.6. Built-in and Factory Functions
6 Sequences: Strings, Lists, and Tuples
6.7. Special Features of Strings
6.10. Summary of String Highlights
6.14. List Type Built-in Methods
6.15. Special Features of Lists
6.17. Tuple Operators and Built-in Functions
6.18. Special Features of Tuples
6.20. *Copying Python Objects and Shallow and Deep Copies
7.1. Mapping Type: Dictionaries
7.3. Mapping Type Built-in and Factory Functions
7.4. Mapping Type Built-in Methods
7.9. Set Type Built-in Methods
7.10. Operator, Function/Method Summary Table for Set Types
8.3. elif
(aka else-if
) Statement
8.4. Conditional Expressions (aka “the Ternary Operator”)
8.10. else
Statement ... Take Two
8.11. Iterators and the iter()
Function
9.2. File Built-in Functions [open()
and file()]
9.9. Persistent Storage Modules
10.3. Detecting and Handling Exceptions
10.12. Exceptions and the sys
Module
11 Functions and Functional Programming
11.6. Variable-Length Arguments
12.5. Features of Module Import
12.6. Module Built-in Functions
12.8. Other Features of Modules
13 Object-Oriented Programming
13.2. Object-Oriented Programming
13.7. Binding and Method Invocation
13.8. Static Methods and Class Methods
13.10. Subclassing and Derivation
13.12. Built-in Functions for Classes, Instances, and Other Objects
13.13. Customizing Classes with Special Methods
13.16. Advanced Features of New-Style Classes ()
13.17. Related Modules and Documentation
14.3. Executable Object Statements and Built-in Functions
14.4. Executing Other (Python) Programs
14.5. Executing Other (Non-Python) Programs
14.8. Miscellaneous Operating System Interface
15.2. Special Symbols and Characters
15.4. Regular Expressions Example
16.2. Sockets: Communication Endpoints
16.3. Network Programming in Python
16.5. Introduction to the Twisted Framework
17 Internet Client Programming
17.1. What Are Internet Clients?
18.3. Python, Threads, and the Global Interpreter Lock
19.2. Tkinter and Python Programming
19.4. Brief Tour of Other GUIs
19.5. Related Modules and Other GUIs
20.2. Web Surfing with Python: Creating Simple Web Clients
20.4. CGI: Helping Web Servers Process Client Data
20.5. Building CGI Applications
21.2. Python Database Application Programmer’s Interface (DB-API)
21.3. Object-Relational Managers (ORMs)
22.2. Extending Python by Writing Extensions
23.2. Programming Microsoft Office with Win32 COM
23.3. Python and Java Programming with Jython
Appendix A Answers to Selected Exercises
Appendix C Python 3: The Evolution of a Programming Language