Read Programming Python Online

Authors: Mark Lutz

Tags: #COMPUTERS / Programming Languages / Python

Programming Python (221 page)

BOOK: Programming Python
9.51Mb size Format: txt, pdf, ePub
ads
subclassing,
Queues and subclassing
,
Queues and subclassing
,
Customizing Widgets with Classes
,
Common appearance
,
Reusable GUI Components with Classes
,
Standalone Container Classes
,
Attaching Class Components
,
Attaching Class Components
,
Extending Class Components
,
Configuring at construction time
,
Subclass Protocols
,
Uploading Local Trees
,
Subclassing Built-in Types
,
Subclassing Built-in Types
,
PyCalc—A “Real” Calculator GUI
,
Subclassing the C++ class in Python
attaching class components,
Attaching Class Components
,
Attaching Class Components
attaching frames,
Configuring at construction time
built-in types,
Subclassing Built-in Types
,
Subclassing Built-in Types
C++ class,
Subclassing the C++ class in Python
customizing widgets with classes,
Customizing Widgets with Classes
,
Common appearance
extending class components,
Extending Class Components
multiprocessing module and,
Queues and subclassing
,
Queues and subclassing
protocol considerations,
Subclass Protocols
PyCalc program and,
PyCalc—A “Real” Calculator GUI
recursive uploads,
Uploading Local Trees
reusable GUI components,
Reusable GUI Components with Classes
,
Standalone Container Classes
subprocess module,
Python System Modules
,
Other os Module Exports
,
Other Redirection Options: os.popen and subprocess
Revisited
,
Redirecting input and output with subprocess
,
Redirecting input and output with subprocess
,
Exit status with subprocess
exit status,
Exit status with subprocess
functionality,
Python System Modules
Popen object,
Other os Module Exports
redirecting streams,
Other Redirection Options: os.popen and subprocess
Revisited
,
Redirecting input and output with subprocess
,
Redirecting input and output with subprocess
SumGrid class,
Laying Out Larger Tables with grid
summer function,
Summing Columns in a File
,
Summing with dictionaries
SWIG tool,
The SWIG Integration Code Generator
,
A Simple SWIG Example
,
Wrapping C Environment Calls with SWIG
,
Wrapping C++ Classes with SWIG
,
Exploring the wrappers interactively
synchronization,
Threads
,
Synchronizing access to shared objects and names
,
Synchronizing access to shared objects and names
,
Synchronizing access to shared objects and names
revisited
,
Synchronizing access to shared objects and names
revisited
,
Inbox synchronization tools
,
POP Message Numbers and Synchronization
,
POP Message Numbers and Synchronization
,
Inbox synchronization error potential
inbox error potential,
Inbox synchronization error potential
mailtools utility package,
Inbox synchronization tools
PyMailGUI program and,
POP Message Numbers and Synchronization
,
POP Message Numbers and Synchronization
_thread module and,
Synchronizing access to shared objects and names
,
Synchronizing access to shared objects and names
threading module,
Synchronizing access to shared objects and names
revisited
,
Synchronizing access to shared objects and names
revisited
threads and,
Threads
sys module,
System Scripting Overview
,
Python System Modules
,
Module Documentation Sources
,
Platforms and Versions
,
Platforms and Versions
,
The Module Search Path
,
The Loaded Modules Table
,
The Loaded Modules Table
,
The Loaded Modules Table
,
Exception Details
,
Exception Details
,
Other sys Module Exports
,
“I’d Like to Have an Argument, Please”
,
CWD, Files, and Import Paths
,
CWD, Files, and Import Paths
,
Command-Line Arguments
,
Parsing Command-Line Arguments
,
Command-Line Arguments
,
Standard Streams
,
Redirecting input and output with subprocess
,
Unicode encodings for text files
,
More on the Global Interpreter Lock
,
sys Module Exits
,
sys Module Exits
,
sys Module Exits
,
sys Module Exits
,
Scanning the Module Search Path
,
Adding Buttons and Callbacks
argv parameter,
“I’d Like to Have an Argument, Please”
,
Command-Line Arguments
command-line arguments,
Command-Line Arguments
,
Parsing Command-Line Arguments
current working directory,
CWD, Files, and Import Paths
documentation sources,
Module Documentation Sources
exception details,
Exception Details
exc_info function,
Exception Details
exit function,
sys Module Exits
,
sys Module Exits
functionality,
System Scripting Overview
,
Python System Modules
,
Other sys Module Exports
getdefaultencoding function,
Unicode encodings for text files
getrefcount function,
The Loaded Modules Table
loaded modules table,
The Loaded Modules Table
module search path,
The Module Search Path
,
CWD, Files, and Import Paths
,
Scanning the Module Search Path
modules dictionary,
The Loaded Modules Table
platform string,
Platforms and Versions
platforms and versions,
Platforms and Versions
program exits,
sys Module Exits
,
sys Module Exits
,
Adding Buttons and Callbacks
setcheckinterval function,
More on the Global Interpreter Lock
standard streams and,
Standard Streams
,
Redirecting input and output with subprocess
sys.stderr,
“I’d Like to Have an Argument, Please”
,
Capturing the stderr Stream
,
Output stream buffering revisited: Deadlocks and
flushes
,
Debugging CGI scripts
,
Common Utilities Module
capturing stream,
Capturing the stderr Stream
CGI scripts and,
Debugging CGI scripts
functionality,
“I’d Like to Have an Argument, Please”
output stream buffering,
Output stream buffering revisited: Deadlocks and
flushes
PyMailCGI program and,
Common Utilities Module
sys.stdin,
“I’d Like to Have an Argument, Please”
,
Redirecting Streams to Files and Programs
,
Redirecting Streams to Files and Programs
,
Redirected Streams and User Interaction
,
Redirected Streams and User Interaction
,
Redirecting Streams to Python Objects
,
Redirecting Streams to Python Objects
,
Writing CGI Scripts in Python
CGI scripts and,
Writing CGI Scripts in Python
end-of-file character,
Redirecting Streams to Files and Programs
end-of-line character,
Redirecting Streams to Files and Programs
functionality,
“I’d Like to Have an Argument, Please”
redirecting to Python objects,
Redirecting Streams to Python Objects
,
Redirecting Streams to Python Objects
user interaction and,
Redirected Streams and User Interaction
,
Redirected Streams and User Interaction
sys.stdout,
“I’d Like to Have an Argument, Please”
,
Redirecting Streams to Python Objects
,
Redirecting Streams to Python Objects
,
Redirection Syntax in Print Calls
,
Output stream buffering revisited: Deadlocks and
flushes
,
Writing CGI Scripts in Python
CGI scripts and,
Writing CGI Scripts in Python
functionality,
“I’d Like to Have an Argument, Please”
output stream buffering,
Output stream buffering revisited: Deadlocks and
flushes
redirecting print calls,
Redirection Syntax in Print Calls
redirecting to Python objects,
Redirecting Streams to Python Objects
,
Redirecting Streams to Python Objects
system programs,
Scanning the Standard Library Directory
,
Scanning the Standard Library Tree
,
Scanning the Module Search Path
,
Scanning the Module Search Path
,
Scanning the Entire Machine
,
Scanning the Entire Machine
,
Printing Unicode Filenames
,
Printing Unicode Filenames
,
Splitting and Joining Files
,
Usage Variations
,
Generating Redirection Web Pages
,
Page Generator Script
,
A Regression Test Script
,
Running the Test Driver
,
Copying Directory Trees
,
Comparing Directory Trees
,
Reporting Differences and Other Ideas
,
Searching Directory Trees
,
A Python Tree Searcher
,
Visitor: Walking Directories “++”
,
Other Visitor Examples (External)
,
Counting Source Code Lines (Visitor)
,
Recoding Copies with Classes (Visitor)
,
Recoding Copies with Classes (Visitor)
,
Other Visitor Examples (External)
,
Playing Media Files
,
Running the Script
,
Automated Program Launchers (External)
additional examples,
Other Visitor Examples (External)
automated program launchers,
Automated Program Launchers (External)
comparing directory trees,
Comparing Directory Trees
,
Reporting Differences and Other Ideas
copying directory trees,
Copying Directory Trees
counting source code lines,
Counting Source Code Lines (Visitor)
generating redirection web pages,
Generating Redirection Web Pages
,
Page Generator Script
playing media files,
Playing Media Files
,
Running the Script
printing Unicode filenames,
Printing Unicode Filenames
,
Printing Unicode Filenames
recoding copies with classes,
Recoding Copies with Classes (Visitor)
,
Recoding Copies with Classes (Visitor)
regression test scripts,
A Regression Test Script
,
Running the Test Driver
scanning directories,
Scanning the Standard Library Directory
scanning directory trees,
Scanning the Standard Library Tree
scanning entire machine,
Scanning the Entire Machine
,
Scanning the Entire Machine
scanning module search path,
Scanning the Module Search Path
,
Scanning the Module Search Path
searching directory trees,
Searching Directory Trees
,
A Python Tree Searcher
splitting and joining files,
Splitting and Joining Files
,
Usage Variations
walking directories,
Visitor: Walking Directories “++”
,
Other Visitor Examples (External)
system scripting,
System Scripting Overview
,
Python System Modules
,
Module Documentation Sources
,
Paging Documentation Strings
,
A Custom Paging Script
,
String Method Basics
,
String Method Basics
,
Other String Concepts in Python 3.X: Unicode and bytes
,
Other String Concepts in Python 3.X: Unicode and bytes
,
File Operation Basics
,
Using Programs in Two Ways
,
Python Library Manuals
,
Commercially Published References
additional references,
Commercially Published References
bytes string type,
Other String Concepts in Python 3.X: Unicode and bytes
custom paging scripts,
A Custom Paging Script
file operations and,
File Operation Basics
module documentation sources,
Module Documentation Sources
overview,
System Scripting Overview
paging documentation strings,
Paging Documentation Strings
program usage considerations,
Using Programs in Two Ways
Python library manuals,
Python Library Manuals
string methods,
String Method Basics
,
String Method Basics
system modules,
Python System Modules
Unicode encoding,
Other String Concepts in Python 3.X: Unicode and bytes
system tools,
Why Python Here?
,
System Scripting Overview
,
Commercially Published References
,
Introducing the sys Module
,
Other sys Module Exports
,
Introducing the os Module
,
Other os Module Exports
,
“Telling the Monkeys What to Do”
BOOK: Programming Python
9.51Mb size Format: txt, pdf, ePub
ads

Other books

Bearly In Time by Kim Fox
Mating Rights by Allie Blocker
An Unlikely Lady by Rachelle Morgan
F Paul Wilson - Novel 05 by Mirage (v2.1)
Dancing in the Streets by Barbara Ehrenreich