Learning Python - Mark Lutz [628]
imports outside packages, Imports outside packages
imports relative to CWD, Imports are still relative to the CWD
imports still relative to CWD, Imports are still relative to the CWD (again)
imports within packages, Imports within packages
modules, selecting with relative and absolute imports, Selecting modules with relative and absolute imports
justification, Why Relative Imports?
module lookup rules summary, Module Lookup Rules Summary
Python 3.0, Changes in Python 3.0, Relative Import Basics, The relative imports solution in 3.0
changes, Changes in Python 3.0
versus 2.6, Relative Import Basics
scope, The Scope of Relative Imports
packages, Module Packages
parallel traversals, Parallel Traversals: zip and map
parentheses ( ), Tuples, Parentheses are optional, Statement rule special cases, A Few Special Cases, Common Coding Gotchas, Generator Expressions: Iterators Meet Comprehensions
functions and, Common Coding Gotchas
generator expressions and, Generator Expressions: Iterators Meet Comprehensions
tuples and, Tuples
Parrot project, Future Possibilities?
parsing, Indexing and Slicing
pass statement, break, continue, pass, and the Loop else, pass
PATH environment variable, The Interactive Prompt, Python Environment Variables
pattern matching, Pattern Matching
pdb debugger, Development Tools for Larger Projects
PEP (Python Enhancement Proposal) protocol, How Is Python Supported?
Person class, Step 1: Making Instances, Testing As You Go, Using Code Two Ways, Coding Subclasses
incremental testing, Testing As You Go
subclassing, Coding Subclasses
version portability, Using Code Two Ways
person.py, Step 1: Making Instances
Peters, Tim, To Metaclass or Not to Metaclass
pickle module, Storing native Python objects with pickle, Pickles and Shelves, Stream Processors Revisited, The pickle Object Serialization Module, The pickle Object Serialization Module
binary data requirement, The pickle Object Serialization Module
string serialization (Python 3.0), The pickle Object Serialization Module
pizzashop.py, OOP and Composition: “Has-a” Relationships
polymorphism, Sequence Operations, How to Break Your Code’s Flexibility, Preview: Operator overloading and polymorphism, Dynamic Typing Is Everywhere, Polymorphism in Python, Polymorphism Revisited, OOP Is About Code Reuse, Polymorphism in Action, Overloading by Call Signatures (or Not)
dynamic typing and, Dynamic Typing Is Everywhere
example, Polymorphism in Action
overloading in Python versus other languages, Overloading by Call Signatures (or Not)
pop method, Type-Specific Operations, List method calls, More Dictionary Methods
portability, It’s Portable
Portable Python, Where to Get Python
pow function, Other Built-in Numeric Tools
precedence, Parentheses group subexpressions
parentheses and, Parentheses group subexpressions
precedence rules, Mixed operators follow operator precedence
print function, Python’s Statements
print operations, Print Operations, Version-Neutral Printing, The Python 3.0 print Function, The Python 2.6 print Statement, Print Stream Redirection, Version-Neutral Printing, Version-Neutral Printing
print and stdout, Version-Neutral Printing
print function (Python 3.0), The Python 3.0 print Function
print statement (Python 2.6), The Python 2.6 print Statement
print stream redirection, Print Stream Redirection
version-neutral printing, Version-Neutral Printing
print statement (Python 2.6), Python’s Statements
procedure, Why Use Functions?
profile module, Other Suggestions, Development Tools for Larger Projects
profilers, Development Tools for Larger Projects
program execution, Program Execution, Development implications, Performance implications, Development implications
development implications, Development implications
Python compared to other languages, Performance implications
program portability, Why Do People Use Python?
program shipping options, Development Tools for Larger Projects
program structure, imports, Imports and Attributes
program units, Python’s Core