Table of contents for The book of Python / John A. Goebel, Adil Hasan, and Francesco Safai Tehran.

Bibliographic record and links to related information available from the Library of Congress catalog.

Note: Contents data are machine generated based on pre-publication provided by the publisher. Contents may have variations from the printed book or be incomplete or contain other coding.


Counter
1.0 The Python Environment
1.1 Python Directory Structure
1.1.1 Additional Paths
1.2 Python's site Module
1.2.1 Non-path Related site Module Functions
1.2.3 site Module Related and non-site Related Path Manipulation
1.2.1 Appending a Path With a .pth Files
1.2.2 Append sys.path Within A Program
1.2.3 Prefixing Paths via PYTHONPATH
1.3 Python Interpreter Command-Line Options
1.3.1 Executing Code in a File
1.3.2 Program Reading a Program form Standard Input (stdin)
1.3.2 Passing Python Commands via the -c Flag
1.3.3 Importing Modules via the -m Flag
1.4 Python Command-line Flags
1.4.1 Command-line Flag: -d for Debugging
1.4.2 Command-line Flag: -E for Ignoring Environmental Variables
1.4.3 Command-line Flag: -i for Interactive
1.4.4 Command-line Flag: -O for Opimitize
1.4.5 Command-line Flag: -OO for More Opimitized (with notes on bytecode
1.4.6 Command-line Flag: -Q for Division Control
1.4.7 Command-line Flag: -S for Ingoring site Module
1.4.8 Command-line Flag: -t for Indent Evaluation
1.4.9 Command-line Flag: -u for Unbuffered Output
1.4.10 Command-line Flag: -v for Verbose Output
1.4.11 Command-line Flag: -vv for More Verbose Output
1.4.12 Command-line Flag: -V to Retrieve Python Version
1.4.13 Command-line Flag: -W for Filter Control
1.4.14 Command-line Flag: -x for Skipping the First Line of Code
1.5 Python Environmental Variables
1.5.1 Setting Environmental Variables
1.5.1.1 Setting Variables in Unix-like OSs
1.6 Python Environmental Variables
1.6.1 Environmental Variables: PYTHONCASEOK
1.6.2 Environmental Variables: PYTHONDEBUG
1.6.3 Environmental Variables: PYTHONHOME
1.6.4 Environmental Variables: PYTHONINSPECT
1.6.5 Environmental Variables: PYTHONOPTIMIZE
1.6.6 Environmental Variables: PYTHONPATH
1.6.7 Environmental Variables: PYTHONSTARTUP
1.6.8 Environmental Variables: PYTHONUNBUFFERED
1.6.9 Environmental Variables: PYTHONVERBOSE
1.6.10 Environmental Variables: PYTHONUNBUFFERED
1.7 Customizing Python
1.7.1 The site.py File
1.7.2 sitecustomize
1.7.3 .pdbrc (fixme: need a reference to the debugging chapter)
1.7.4 .pythonrc.py
1.9 In-Line Help
1.10 On-Line Resources
2.0 A Brief Introduction to Python
2.1 In the beginning...
2.2 Visual Notation and Indentation
2.3 Program Structure
2.3.1 Module Basics: The import Statement
2.4 Comments
2.5 Documentation Strings
2.5.1 Single Line Docstrings
2.5.2 Multiple Lines Docstrings
2.6 Python Basic Syntax
2.6.1 Python Programs
2.6.2 Language Statements
2.6.3 Variables
2.6.4 Namespaces and Scopes
2.6.5 Memory Management and Garbage Collection
3.0 Base Data Types
3.1 Numbers
3.1.1 Integer Numbers: int and long
2.1.2 Real Numbers: float and decimal
3.2 Collection Data Types
3.2.1 Sequence Types: list and tuple
3.2.2 Lists
3.2.3 Comprehensions: list and generator
3.2.4 Strings and String Literals
3.2.5 Dictionary Type
3.14: Additional Dictionary Methods
3.2.6 Set Class
3.2.7 Priority Queues
4.0 Operators
4.1 Arithmetic Operators
4.2 Assignment Operator
4.2.1 Augmented Assignment Operators
4.2.2 Bitwise Operators
4.2.3 Comparison and Logical Operators
4.2.4 Identity and Membership Operators
4.2.5 Operators Order of Precedence
4.3 Conditional Constructs
4.4 Loops
4.4.1 The for Instruction
4.4.2 The while Operator
4.5 Functions
4.5.1 More About Functions
4.5.2 Anonymous Functions
4.6 Classes
4.7 Output and Output Formatting
4.8 Exceptions
5.0 More Python
5.1 Modules
5.1.1 More About Modules
5.2 The imp Module
5.3 Packages
5.4 Command Line Processing
5.5 The getopt Module
5.6 The optparse Module
5.6.1 Optparse: Help System
5.6.2 Optparse: callback
5.6.3 Optparse: actions
5.6.4 Optparse: Keyword Arguments
6.0 Attributes
6.2 Mathematical Functions and Random Numbers
6.2.1 math and cmath Module
6.2.2 Pseudo-Random Numbers: random and whrandom
6.3 Python in Python
6.3.1 Three keywords: compile, eval and exec
6.3.2 The dis module
7.0 Object Orientation with Python
7.1 Creating Basic Classes in Python
7.1.1 Defining Classes and Methods
7.1.2 Defining State Attributes
7.1.3 Private and Public Attributes
7.1.4 Special State Attributes
7.2 Inheritance
7.2.1 The super function
7.3 Enhancing Classes Using Python's Builtin Features
7.3.1 Class-level Methods: staticmethod and classmethod Builtins
7.3.2 Enhancing Class Instantiation
7.3.2.1 Instance Creation: the __new__ method
7.3.2.2 Instance Initialization: the __init__ method
7.3.2.3 The __call__ Method
7.3.3 Enhancing Instance Deletion: The __del__ method
7.4 Enhanced Attribute Access
7.4.1 The __getattr__ Method
4.4.2 The __setattr__ Method
7.4.4 The __getattribute__ Method
7.4.5 The Property Function
7.4.6 Descriptors: __get__, __set__ and __delete__ Methods
8.0 Introspection
8.1 Introspecting with the Builtin Functions and Attributes
8.2 Introspecting with the inspect Module
8.2 Enhancing Object Representations
8.2.1 The __repr__ Method
8.2.2 The __str__ Method
8.2.3 The __unicode__ Method
8.3 Enhancing Comparisons
8.3.1 Rich Comparison Methods
8.3.2 The Conventional Comparison Method __cmp__
8.3.3 The __nonzero__ Method
8.4 Enhancing Containers
8.4.1 Managing Items: The __getitem__, __setitem__ and __delitem__ Special
8.4.2 Querying Containers: The __contains__ and __len__ Methods
8.4.3 Iterating Over Containers
8.4.3.1 The __iter__ and next Methods
8.5 Generators
8.5.1 The __hash__ Method
8.6 Tailoring Builtin Type Classes
8.7 Metaclasses
8.8 Function Decorator Syntax
9.0 Exceptions, Debugging and Unit Tests
9.1 Exceptions
9.1.1 The Builtin Exception Classes
9.1.2 Handling Exceptions: The try ... except Statement
9.1.3 Raising Exceptions: The raise Statement
9.1.4 Tidying Up: The try ... finally Statement
9.1.5 Creating Custom Exception Classes
9.1.6 The assert statement
9.2 Warnings
9.2.1 The Builtin Warning Classes
9.2.2 The warnings Module
9.2.3 The traceback module
10.0 Debugging Python with the pdb Module
10.1 Using pdb as a Script
10.2.1 Using pdb as a Module
11.0 Logging Output with the logging Module
11.1 The Predefined Levels
11.1.2 The logging Module Functions
11.1.3 Creating a Logger: The Logger Class
11.1.4 Handling the Logger Output: The handler Classes
11.1.5 Enhancing Handlers
11.2 Formatting Messages: The Formatter Class
11.4 Configuring the Logging System
12.0 Unit and Regression Tests
12.1 Running Interactive Text Examples: The doctest Module
12.1.2 Testing Small Code Units: The unittest Module
12.1.3 Creating a Unit-Test: The TestCase Class
12.1.3 Incorperating Test Code Within the unittest Framework: The
12.1.4 Creating Suites of Tests: The TestSuite Class
12.1.5 Running doctest Tests in the unittest Framework
12.1.6 Running Tests from the Command Line: The TextTestRunner Class
12.1.7 Unit-tests Using the test Package

Library of Congress Subject Headings for this publication:

Python (Computer program language).