Learning Python - Mark Lutz [615]
attributes and annotations, Function Objects: Attributes and Annotations, Function Annotations in 3.0
calls, Calls, Calls
coding, Coding Functions, def Executes at Runtime
definitions, Definition, Definition
dependencies and function design, Function Design Concepts
design concepts, Function Design Concepts
example, definitions and calls, A First Example: Definitions and Calls
example, intersecting sequences, A Second Example: Intersecting Sequences, Local Variables, Local Variables
local variables, Local Variables
function annotations (Python 3.0), Function Annotations in 3.0
function attributes, Function Attributes
function instrospection, Function Introspection
function related statements and expressions, Function Basics
global statement, Scope Rules (see global statement)
gotchas, Function Gotchas, Enclosing Scope Loop Variables, Local Names Are Detected Statically, Defaults and Mutable Objects, Functions Without returns, Enclosing Scope Loop Variables
default arguments and mutable objects, Defaults and Mutable Objects
enclosing scope loop variables, Enclosing Scope Loop Variables
functions without returns, Functions Without returns
static detection of local names, Local Names Are Detected Statically
indirect function calls, Indirect Function Calls
lambda expression, Anonymous Functions: lambda (see lambda expression)
local scope, Scope Rules
mapping over sequences, Mapping Functions over Sequences: map
nonlocal statement, Scope Rules (see nonlocal statement)
parentheses and, Common Coding Gotchas
polymorphism, Polymorphism in Python, Polymorphism Revisited
purpose of, Why Use Functions?
recursive functions, Recursive Functions, Handling Arbitrary Structures, Summation with Recursion, Coding Alternatives, Loop Statements Versus Recursion, Handling Arbitrary Structures
arbitrary structures, handling, Handling Arbitrary Structures
coding alternatives, Coding Alternatives
loop statements, versus, Loop Statements Versus Recursion
summation, Summation with Recursion
return statement, Local Variables (see return statement)
simple functions, Static Methods in 2.6 and 3.0
yield statement, def Statements (see yield statement)
G
garbage collection, Nesting Revisited, Objects Are Garbage-Collected
generator expressions, Iterators Revisited: Generators, Generator Expressions: Iterators Meet Comprehensions, Listing attributes per object in class trees
generator functions, Iterators Revisited: Generators, Value Generation in Built-in Types and Classes, State suspension, Iteration protocol integration, Generator functions in action, Extended generator function protocol: send versus next, Generator Functions Versus Generator Expressions, Emulating zip and map with Iteration Tools, Coding your own zip(...) and map(None, ...), Coding your own map(func, ...), Coding your own zip(...) and map(None, ...), Coding your own zip(...) and map(None, ...), Value Generation in Built-in Types and Classes
examples, Generator functions in action
generator expressions, versus, Generator Functions Versus Generator Expressions
iteration protocol and, Iteration protocol integration
iteration tools, Emulating zip and map with Iteration Tools, Coding your own zip(...) and map(None, ...), Coding your own map(func, ...), Coding your own zip(...) and map(None, ...), Coding your own zip(...) and map(None, ...)
coding a map(func, ...), Coding your own map(func, ...)
coding zip(...)