Learning Python - Mark Lutz [608]
stream processing with, Stream Processors Revisited
compound statements, What Python Adds, if Tests and Syntax Rules, Python Syntax Rules
general pattern, Python Syntax Rules
comprehension syntax, 3.0 Comprehension Syntax Summary, Extended Comprehension Syntax for Sets and Dictionaries
concatenation, Sequence Operations
constructor method, Classes Can Intercept Python Operators, Coding Constructors
__init__, Coding Constructors
constructors, Coding Constructors, Step 5: Customizing Constructors, Too, Other Ways to Combine Classes
coding, Coding Constructors
customizing, Step 5: Customizing Constructors, Too, Other Ways to Combine Classes
context managers, The Context Management Protocol, Closing Files and Server Connections
file and server connection closure, Closing Files and Server Connections
continue statement, break, continue, pass, and the Loop else, continue
control flow statements, Python Syntax Rules
conversionflag, Adding Specific Formatting
copy module, nested data structures, copying with, References Versus Copies
copying versus referencing of objects, References Versus Copies
core data types, Python’s Core Data Types, Step 2: Adding Behavior Methods
count method and tuples, Conversions, methods, and immutability
coupling, Function Design Concepts
CPython, CPython
cross-file module linking, Imports and Attributes
cross-file name changes, Cross-File Name Changes
curly braces { }, Python’s Core Data Types, Mapping Operations, Set literals in Python 3.0, Set comprehensions in Python 3.0, Dictionaries, Dictionary views and sets, Statement rule special cases
dictionaries and, Mapping Operations, Dictionaries
set comprehensions and, Set comprehensions in Python 3.0
sets and, Set literals in Python 3.0, Dictionary views and sets
CWD (current working directory), Imports outside packages
cyclic references, Objects Are Garbage-Collected
Cygwin, Where to Get Python
Cython, Other Execution Options
D
data attributes, Example
data hiding in modules, Data Hiding in Modules
data structures, Why Use Built-in Types?
database programming, Database Programming
databases, Step 7 (Final): Storing Objects in a Database, Updating Objects on a Shelve, Pickles and Shelves, Updating Objects on a Shelve, Future Directions
storing objects in, Step 7 (Final): Storing Objects in a Database, Updating Objects on a Shelve, Pickles and Shelves, Updating Objects on a Shelve
pickles and shelves, Pickles and Shelves, Updating Objects on a Shelve
dbm module, Pickles and Shelves
debuggers, Development Tools for Larger Projects
debugging, Which Option Should I Use?, The assert Statement, Example: Trapping Constraints (but Not Errors!), Debugging with Outer try Statements
assert statement, The assert Statement, Example: Trapping Constraints (but Not Errors!)
trapping constraints example, Example: Trapping Constraints (but Not Errors!)
outer try statements, using for, Debugging with Outer try Statements
decimal module, Decimal Type
decimal numeric literals, Numeric Literals
decimal numeric type, Other Core Types, Decimal Type, Decimal context manager
decoding and encoding, Character Encoding Schemes
decorators, What’s a Decorator?, Decorators Manage Functions and Classes, Too, Managing Calls and Instances, Managing Functions and Classes, Using and Defining Decorators, Why Decorators?, Function Decorators, Supporting method decoration, Class Decorators, Supporting multiple instances, Decorator Nesting, Decorator Arguments, Decorators Manage Functions and Classes, Too, Coding Function Decorators, Adding Decorator Arguments, Coding Class Decorators, Why Decorators? (Revisited), Managing Functions and Classes Directly, Example: “Private” and “Public” Attributes, Open Issues, Implementation alternatives: __getattribute__ inserts, call stack inspection, Decorator Arguments Versus Function Annotations, Other Applications: Type Testing (If You Insist!), Increasing Levels of Magic
call and instance management, Managing Calls and