Learning Python - Mark Lutz [638]
(see also exceptions)
debugging with, Debugging with Outer try Statements
except statement and, Catching Exceptions
nested try statements, Nesting Exception Handlers, Example: Syntactic Nesting
Python 2.5 and later, Exception Coding Details
try, The try/except/else Statement, Example: Catching Built-in Exceptions
except/else, The try/except/else Statement, Example: Catching Built-in Exceptions
try statement clause forms, try Statement Clauses, try Statement Clauses
try/else clause, The try else Clause
try/finally statement, The try/finally Statement, Example: Coding Termination Actions with try/finally, Example: Coding Termination Actions with try/finally
coding termination actions, Example: Coding Termination Actions with try/finally
unified try/except/finally, Unified try/except/finally, Unified try Example, Unified try Statement Syntax, Combining finally and except by Nesting, Unified try Example
example, Unified try Example
nesting finally and except, Combining finally and except by Nesting
statement syntax, Unified try Statement Syntax
try/finally statement, Exception Roles, Termination Actions, Closing Files and Server Connections
file and server connection closure, Closing Files and Server Connections
tuple object type, Tuples
tuple-unpacking assignment statements, Assignment Statement Forms
tuples, Variables and Basic Expressions, Tuples, Files, and Everything Else, Tuples, Why Lists and Tuples?, Tuples, Tuples in Action, Tuple syntax peculiarities: Commas and parentheses, Conversions, methods, and immutability, Conversions, methods, and immutability, Conversions, methods, and immutability, Why Lists and Tuples?, Tuple assignment in for loops
common literals and operations, Tuples
conversions, methods, and immutability, Conversions, methods, and immutability
in for loops, Tuple assignment in for loops
immutability and tuple contents, Conversions, methods, and immutability
lists, compared to, Why Lists and Tuples?
sorting, Conversions, methods, and immutability
supported sequence operations, Tuples in Action
syntax with parentheses and commas, Tuple syntax peculiarities: Commas and parentheses
type class, Metaclasses Are Subclasses of Type
type hierarchies, Python’s Type Hierarchies
type object type, How to Break Your Code’s Flexibility, Type Objects, Classes Are Instances of type
typesubclass.py, Extending Types by Subclassing
U
unbound methods, Methods Are Objects: Bound or Unbound, Unbound Methods are Functions in 3.0, Static Methods in 2.6 and 3.0
Python 3.0 status as functions, Unbound Methods are Functions in 3.0
undefined name exception, Abstract Superclasses
underscore (_), Minimizing from * Damage: _X and __all__
Unicode, String Changes in 3.0, Character Encoding Schemes, Coding Unicode Strings
strings, coding of, Coding Unicode Strings
text, handling in versions 2.6 and 3.0, String Changes in 3.0
Unicode files, Using Unicode Files, Reading and Writing Unicode in 3.0, Manual encoding, File output encoding, File input decoding, Decoding mismatches
reading and writing (Python 3.0), Reading and Writing Unicode in 3.0, Manual encoding, File output encoding, File input decoding, Decoding mismatches
decoding mismatches, Decoding mismatches
file input decoding, File input decoding
file output encoding, File output encoding
manual encoding, Manual encoding
unicode string type (Python 2.6), Coding Unicode Strings in Python 2.6
unicode string type (Python 2.x), Python’s String Types, Coding Unicode Strings in Python 2.6
unicode strings, Strings
union function, Generalized Set