Online Book Reader

Home Category

Learning Python - Mark Lutz [612]

By Root 1831 0
Exceptions

class-based exceptions, Class-Based Exceptions, Class-Based Exceptions

(see also exception classes)

for closing files and server connections, Closing Files and Server Connections

default behavior, Example: Default Behavior

default exception handlers, Default Exception Handler

design tips and gotchas, Exception Design Tips and Gotchas, Catching Too Little: Use Class-Based Categories, What Should Be Wrapped, Catching Too Much: Avoid Empty except and Exception, Catching Too Little: Use Class-Based Categories

handler specificity and class-based categories, Catching Too Little: Use Class-Based Categories

limiting handler generality, Catching Too Much: Avoid Empty except and Exception

wrappers, What Should Be Wrapped

exception handlers, Why Use Exceptions?, Nesting Exception Handlers, Example: Syntactic Nesting

nested exception handlers, Nesting Exception Handlers, Example: Syntactic Nesting

in-process testing with, Running In-Process Tests

justification, Why Use Exceptions?

nonerror exceptions, Exceptions Aren’t Always Errors, Functions Can Signal Conditions with raise, Functions Can Signal Conditions with raise

user-defined exceptions, Functions Can Signal Conditions with raise

purposes, Exception Roles

raise statement, The raise Statement, Python 3.0 Exception Chaining: raise from

raising exceptions, Raising Exceptions

string exceptions, deprecation of, String Exceptions Are Right Out!

termination actions, Termination Actions

try statement, Exception Coding Details (see try statement)

typical uses for, Exception Idioms, More on sys.exc_info

user-defined exceptions, User-Defined Exceptions

with/as statement, with/as Context Managers, The Context Management Protocol, Basic Usage, The Context Management Protocol

context management protocol, The Context Management Protocol

usage, Basic Usage

exec function, Using exec to Run Module Files, Importing Modules by Name String

loading modules from a string, Importing Modules by Name String

exec statement (Python 2.6), Python’s Statements

executable files, Frozen Binaries, Unix Executable Scripts (#!)

creating with Python, Frozen Binaries

Unix path, defining in comment, Unix Executable Scripts (#!)

executable scripts, Unix Executable Scripts (#!)

execution optimization tools, Execution Optimization Tools

exercises, This Book’s Style and Structure, Test Your Knowledge: Part I Exercises, Test Your Knowledge: Part II Exercises, Test Your Knowledge: Part III Exercises, Test Your Knowledge: Part IV Exercises, Test Your Knowledge: Part V Exercises, Test Your Knowledge: Part VI Exercises, Test Your Knowledge: Part VII Exercises

Part I, Test Your Knowledge: Part I Exercises

Part II, Test Your Knowledge: Part II Exercises

Part III, Test Your Knowledge: Part III Exercises

Part IV, Test Your Knowledge: Part IV Exercises

Part V, Test Your Knowledge: Part V Exercises

Part VI, Test Your Knowledge: Part VI Exercises

Part VII, Test Your Knowledge: Part VII Exercises

expression operators, Built-in Numeric Tools, Python Expression Operators, Python Expression Operators

table of, including precedence, Python Expression Operators, Python Expression Operators

versions 3.0 and 2.x differences, Python Expression Operators

expression statements, Expression Statements, Expression Statements and In-Place Changes

in-place changes, Expression Statements and In-Place Changes

expressions, Introducing Python Object Types, Python Expression Operators, Parentheses group subexpressions, Mixed types are converted up

mixing operators, Mixed types are converted up

parentheses and, Parentheses group subexpressions

extend method, List method calls

extended slicing, Extended slicing: the third limit and slice objects

extensions in Python versions 2.6 and 3.0, Specific Language Extensions in 2.6 and 3.0

F


factories, Classes Are Objects: Generic Object Factories, Why Factories?, Why Factories?

justification, Why Factories?

factoring of code, Coding Methods

factory design pattern, Classes Are Objects: Generic Object Factories

Return Main Page Previous Page Next Page

®Online Book Reader