Online Book Reader

Home Category

Learning Python - Mark Lutz [623]

By Root 1472 0

global scope, Scope Rules

gotchas, Module Gotchas, Recursive from Imports May Not Work, Statement Order Matters in Top-Level Code, from Copies Names but Doesn’t Link, from * Can Obscure the Meaning of Variables, reload May Not Impact from Imports, Recursive from Imports May Not Work

from imports and reload, reload May Not Impact from Imports

from statement, from Copies Names but Doesn’t Link

from statement and variables, from * Can Obscure the Meaning of Variables

recursive import failures, Recursive from Imports May Not Work

statement order in top-level code, Statement Order Matters in Top-Level Code

import statement, The import Statement

importing, 2. Compile It (Maybe), 3. Run It

byte code compilation if required, 2. Compile It (Maybe)

running, 3. Run It

importing by name string, Importing Modules by Name String

importing of modules, How Imports Work, 3. Run It, 1. Find It

locating, 1. Find It

imports and reloads, Module Imports and Reloads, import and reload Usage Notes

metaprograms, Modules Are Objects: Metaprograms, Modules Are Objects: Metaprograms

mixed-usage modes, Mixed Usage Modes: __name__ and __main__, Using Command-Line Arguments with __name__

module extensions, Module Creation

module namespaces, Module Namespaces, Namespace Nesting, Files Generate Namespaces, Attribute Name Qualification, Imports Versus Scopes, Namespace Nesting

attribute name qualification, Attribute Name Qualification

generation from files, Files Generate Namespaces

imports versus scopes, Imports Versus Scopes

namespace nesting, Namespace Nesting

module search path, import and reload Usage Notes, 1. Find It, The Module Search Path, Advanced Module Selection Concepts, Configuring the Search Path, Search Path Variations, The sys.path List, Module File Selection, Advanced Module Selection Concepts, Advanced Module Selection Concepts

advanced module selection concepts, Advanced Module Selection Concepts

module file selection, Module File Selection

search path configuration, Configuring the Search Path

search path variations, Search Path Variations

sys.path list, The sys.path List

third-party extensions, Advanced Module Selection Concepts

module search path, changing, Changing the Module Search Path

namespaces, Modules and namespaces, Why Use Modules?

naming conventions, Step 1: Making Instances

naming of, Module Creation

program structure and, Python Program Architecture

reloading modules, Reloading Modules, reload Example, reload Example

example, reload Example

roles of, Why Use Modules?

scope, Files Generate Namespaces

standard library, Standard Library Modules

transitive module reloads, Transitive Module Reloads, Transitive Module Reloads

__name__ attribute, Mixed Usage Modes: __name__ and __main__, Using Command-Line Arguments with __name__, Unit Tests with __name__, Using Command-Line Arguments with __name__

command-line arguments with, Using Command-Line Arguments with __name__

unit tests, Unit Tests with __name__

Monty Python’s Flying Circus, It’s Named After Monty Python

multiline statements, Statement Delimiters: Lines and Continuations

multiple inheritance, Coding Class Trees, Multiple Inheritance: “Mix-in” Classes, Listing attributes per object in class trees, Coding Mix-in Display Classes, Diamond Inheritance Change

diamond pattern inheritance trees, Diamond Inheritance Change

mix-in classes, Coding Mix-in Display Classes (see mix-in classes)

multiway branching, Multiway Branching

mutable objects, Lists, Step 2: Adding Behavior Methods

mutables, Common Coding Gotchas

in assignments, Common Coding Gotchas

mybooks.xml, XML Parsing Tools

mydir.py, Modules Are Objects: Metaprograms

myfile.py, The Grander Module Story: Attributes

N


name attribute, User-Defined Classes

name mangling, Pseudoprivate Class Attributes, Why Use Pseudoprivate Attributes?

namespace objects, Testing As You Go

namespaces, The Grander Module Story: Attributes, Modules and namespaces, Python Scope Basics, Why Use Modules?, Classes and Instances, Namespaces: The Whole Story, Namespace

Return Main Page Previous Page Next Page

®Online Book Reader