Read Programming Python Online

Authors: Mark Lutz

Tags: #COMPUTERS / Programming Languages / Python

Programming Python (210 page)

BOOK: Programming Python
3.42Mb size Format: txt, pdf, ePub
ads
H
hashing technique,
Using DBM Files
Hello World program,
“Hello World” in Four Lines (or Less)
,
One More for Old Times’ Sake
,
The Hello World Selector
,
Checking for Missing and Invalid Inputs
help function,
Paging Documentation Strings
hidden fields,
Passing Parameters in Hidden Form Fields
,
Hidden Form Input Fields
,
Passing State Information in HTML Hidden Input Fields
,
Alternative: Passing header text in hidden input fields
(PyMailCGI_2.1)
,
Alternative: Passing header text in hidden input fields
(PyMailCGI_2.1)
passing header text in,
Alternative: Passing header text in hidden input fields
(PyMailCGI_2.1)
,
Alternative: Passing header text in hidden input fields
(PyMailCGI_2.1)
passing parameters in,
Passing Parameters in Hidden Form Fields
,
Hidden Form Input Fields
passing state information in,
Passing State Information in HTML Hidden Input Fields
HList widget,
Ideas for Improvement
holmes expert system shell,
Parsing and Unparsing Rule Strings
,
More on the holmes expert system shell
functionality,
More on the holmes expert system shell
rule strings,
Parsing and Unparsing Rule Strings
HTML,
Python Internet Development Options
,
New in Version 3.0 (Fourth Edition)
,
Handling HTML Content in Email
,
A First Web Page
,
HTML basics
,
HTML file permission constraints
,
Table tags
,
Submission page
,
More on form tags
,
More on HTML and URL Escapes
,
Avoiding conflicts
,
HTML and URL conflicts: &
,
Passing State Information in HTML Hidden Input Fields
,
Escaping Mail Text and Passwords in HTML
,
Escaping Mail Text and Passwords in HTML
,
Other Approaches
,
XML and HTML Parsing
,
HTML Parsing in Action
,
Extracting plain text from HTML (revisited)
basic overview,
HTML basics
building web pages with,
A First Web Page
CGI script escape conventions,
More on HTML and URL Escapes
,
Avoiding conflicts
escaping mail text/passwords,
Escaping Mail Text and Passwords in HTML
,
Escaping Mail Text and Passwords in HTML
file permission constraints,
HTML file permission constraints
form tags,
Submission page
,
More on form tags
hidden input fields,
Passing State Information in HTML Hidden Input Fields
Internet applications and,
Other Approaches
parsing support,
Python Internet Development Options
,
XML and HTML Parsing
,
HTML Parsing in Action
,
Extracting plain text from HTML (revisited)
PyMailGUI text extraction,
New in Version 3.0 (Fourth Edition)
,
Handling HTML Content in Email
table tags,
Table tags
URL conflicts and,
HTML and URL conflicts: &
html.entities module,
Handling HTML entity references (revisited)
html.parser module,
Python Internet Development Options
,
Python’s Internet Library Modules
,
HTTP: Accessing Websites
,
XML and HTML Parsing
,
HTML Parsing in Action
,
Extracting plain text from HTML (revisited)
fetched data considerations,
HTTP: Accessing Websites
functionality,
Python’s Internet Library Modules
,
XML and HTML Parsing
,
HTML Parsing in Action
,
Extracting plain text from HTML (revisited)
screen scraping support,
Python Internet Development Options
HTMLgen tool,
Python Internet Development Options
HTTP,
HTTP: Accessing Websites
,
HTTP: Accessing Websites
,
HTTP “Cookies”
,
Handling cookies with the urllib.request module
accessing websites,
HTTP: Accessing Websites
,
HTTP: Accessing Websites
cookie support,
HTTP “Cookies”
,
Handling cookies with the urllib.request module
http.client module,
Python’s Internet Library Modules
,
HTTP: Accessing Websites
http.cookiejar module,
Python’s Internet Library Modules
,
HTTP “Cookies”
,
Handling cookies with the urllib.request module
http.cookies module,
Python’s Internet Library Modules
,
HTTP “Cookies”
http.server module,
Python’s Internet Library Modules
,
HTTP: Accessing Websites
HTTPS (secure HTTP),
HTTPS: Secure HTTP transmissions
HTTP_COOKIE environment variable,
Receiving a cookie
hyperlinks,
Ideas for Improvement
,
HTML basics
,
Passing Parameters in Hardcoded URLs
,
Passing Parameters in Hardcoded URLs
I
IANA (Internet Assigned Numbers Authority),
Python’s Internet Library Modules
Icon language,
Enter Python
IDLE interface,
tkinter Extensions
,
Running GUI Programs
,
Update for initial positioning
functionality,
tkinter Extensions
running GUI programs,
Running GUI Programs
text editor positioning issues,
Update for initial positioning
IETF (Internet Engineering Task Force),
Python’s Internet Library Modules
images,
Images
,
Fun with Buttons and Pictures
,
Viewing and Processing Images with PIL
,
Scrolling and canvases (ahead)
,
Creating Image Thumbnails with PIL
,
Scrolling and canvases (ahead)
,
Using images in toolbars, too
,
Using images in toolbars, too
,
Scrollable Canvases and Image Thumbnails
,
Scrolling images too: PyPhoto (ahead)
,
Scrolling images too: PyPhoto (ahead)
,
Adding Pictures and Generating Tables
,
Table tags
adding with CGI scripts,
Adding Pictures and Generating Tables
,
Table tags
displaying,
Images
,
Fun with Buttons and Pictures
processing with PIL,
Viewing and Processing Images with PIL
,
Scrolling and canvases (ahead)
scrolling,
Scrolling images too: PyPhoto (ahead)
thumbnails,
Creating Image Thumbnails with PIL
,
Scrolling and canvases (ahead)
,
Scrollable Canvases and Image Thumbnails
,
Scrolling images too: PyPhoto (ahead)
in toolbars,
Using images in toolbars, too
,
Using images in toolbars, too
ImageTk module,
Scrollable Canvases and Image Thumbnails
imaplib module,
Python’s Internet Library Modules
,
Processing Internet Email
__import__ function,
Importing by name string
independent programs,
Sockets and independent programs
,
Starting Independent Programs
sockets and,
Sockets and independent programs
starting,
Starting Independent Programs
independent windows,
Independent Windows
,
Independent Windows
indexes,
Text indexes
inheritance,
Adding Inheritance
,
Composition versus inheritance
classes and,
Adding Inheritance
SimpleEditor class and,
Composition versus inheritance
Input class,
Redirecting Streams to Python Objects
input files,
Input files
,
Input files
,
Unicode file and display model
input forms,
Laying Out Input Forms
,
Going modal again
,
Grid Basics: Input Forms Revisited
grid basics,
Grid Basics: Input Forms Revisited
laying out,
Laying Out Input Forms
,
Going modal again
input function,
Standard Streams
input/output streams,
“I’d Like to Have an Argument, Please”
,
Standard Streams
,
Redirecting Streams to Files and Programs
,
Coding alternatives for adders and sorters
,
Redirected Streams and User Interaction
,
Redirected Streams and User Interaction
,
Redirecting Streams to Python Objects
,
Redirecting Streams to Python Objects
,
The io.StringIO and io.BytesIO Utility Classes
,
The io.StringIO and io.BytesIO Utility Classes
,
Capturing the stderr Stream
,
Redirection Syntax in Print Calls
,
Other Redirection Options: os.popen and subprocess
Revisited
,
Other Redirection Options: os.popen and subprocess
Revisited
,
Redirecting input or output with os.popen
,
Redirecting input and output with subprocess
,
Redirecting input and output with subprocess
,
Output stream buffering: A first look
,
Output stream buffering revisited: Deadlocks and
flushes
,
Output stream buffering revisited: Deadlocks and
flushes
,
GuiStreams: Redirecting Streams to Widgets
,
Using Redirection for the Packing Scripts
,
Making Sockets Look Like Files and Streams
,
Sockets versus command pipes
,
A Stream Redirection Utility
,
Sockets versus command pipes
,
Writing CGI Scripts in Python
,
Common Utilities Module
capturing stderr stream,
Capturing the stderr Stream
CGI scripts and,
Writing CGI Scripts in Python
io.BytesIO class,
The io.StringIO and io.BytesIO Utility Classes
io.StringIO class,
The io.StringIO and io.BytesIO Utility Classes
output stream buffering,
Output stream buffering: A first look
,
Output stream buffering revisited: Deadlocks and
flushes
,
Output stream buffering revisited: Deadlocks and
flushes
PyMailCGI program and,
Common Utilities Module
redirecting print calls,
Redirection Syntax in Print Calls
redirecting to files/programs,
Redirecting Streams to Files and Programs
,
Coding alternatives for adders and sorters
redirecting to Python objects,
Redirecting Streams to Python Objects
,
Redirecting Streams to Python Objects
redirecting to widgets,
GuiStreams: Redirecting Streams to Widgets
,
Using Redirection for the Packing Scripts
redirecting with os.popen,
Other Redirection Options: os.popen and subprocess
Revisited
,
Redirecting input or output with os.popen
redirecting with subprocess,
Other Redirection Options: os.popen and subprocess
Revisited
,
Redirecting input and output with subprocess
,
Redirecting input and output with subprocess
redirection utility,
A Stream Redirection Utility
,
Sockets versus command pipes
sockets looking like,
Making Sockets Look Like Files and Streams
,
Sockets versus command pipes
standard streams,
“I’d Like to Have an Argument, Please”
,
Standard Streams
user interaction and,
Redirected Streams and User Interaction
,
Redirected Streams and User Interaction
insert command (SQL),
Adding records
Inter-Process Communication,
Python System Modules
(see IPC)
interact function,
Redirecting Streams to Files and Programs
Internationalization,
Message header encodings: email package support
,
Message header encodings: email package support
,
New in Version 3.0 (Fourth Edition)
,
Mail Content Internationalization Support
,
Mail Content Internationalization Support
,
New in This Fourth Edition (Version 3.0)
i18n message headers,
Message header encodings: email package support
,
Message header encodings: email package support
,
New in This Fourth Edition (Version 3.0)
mail content support,
New in Version 3.0 (Fourth Edition)
,
Mail Content Internationalization Support
,
Mail Content Internationalization Support
Internet Assigned Numbers Authority (IANA),
Python’s Internet Library Modules
Internet Engineering Task Force (IETF),
Python’s Internet Library Modules
Internet Service Providers (ISPs),
Generating Redirection Web Pages
,
Transferring Directories with ftplib
,
POP: Fetching Email
Internet-related scripting,
Python Internet Development Options
,
Python Internet Development Options
,
The Socket Layer
,
Machine identifiers
,
The Protocol Layer
,
Protocol structures
,
Python’s Internet Library Modules
,
Python’s Internet Library Modules
,
Socket Programming
,
Binding reserved port servers
,
Handling Multiple Clients
,
Summary: Choosing a Server Scheme
,
Making Sockets Look Like Files and Streams
,
Sockets versus command pipes
,
A Simple Python File Server
,
Using a reusable form-layout class
development options,
Python Internet Development Options
,
Python Internet Development Options
handling multiple clients,
Handling Multiple Clients
,
Summary: Choosing a Server Scheme
library modules and,
Python’s Internet Library Modules
,
Python’s Internet Library Modules
protocols and,
The Protocol Layer
,
Protocol structures
Python file server,
A Simple Python File Server
,
Using a reusable form-layout class
sockets and,
The Socket Layer
,
Machine identifiers
,
Socket Programming
,
Binding reserved port servers
sockets like files/streams,
Making Sockets Look Like Files and Streams
,
Sockets versus command pipes
IntVar class,
tkinter “Variables” and Form Layout Alternatives
io.BytesIO class,
The io.StringIO and io.BytesIO Utility Classes
io.StringIO class,
The io.StringIO and io.BytesIO Utility Classes
IPC (Inter-Process Communication),
Python System Modules
,
Interprocess Communication
,
Interprocess Communication
,
Interprocess Communication
,
Interprocess Communication
,
Interprocess Communication
,
Interprocess Communication
,
Interprocess Communication
,
Anonymous Pipes
,
Output stream buffering revisited: Deadlocks and
flushes
,
Bidirectional IPC with anonymous pipes
,
Bidirectional IPC with anonymous pipes
,
Named Pipes (Fifos)
,
Named pipe use cases
,
Sockets: A First Look
,
Socket use cases
,
Signals
,
Signals
,
IPC Tools: Pipes, Shared Memory, and Queues
,
Queues and subclassing
,
The Socket Layer
,
Extensions to the CGI Model
anonymous pipes,
Interprocess Communication
,
Anonymous Pipes
,
Output stream buffering revisited: Deadlocks and
flushes
bidirectional,
Bidirectional IPC with anonymous pipes
,
Bidirectional IPC with anonymous pipes
FastCGI and,
Extensions to the CGI Model
multiprocessing module and,
Interprocess Communication
,
IPC Tools: Pipes, Shared Memory, and Queues
,
Queues and subclassing
named pipes,
Interprocess Communication
,
Named Pipes (Fifos)
,
Named pipe use cases
overview,
Interprocess Communication
shared memory,
Interprocess Communication
signals,
Interprocess Communication
,
Signals
,
Signals
sockets,
Python System Modules
,
Interprocess Communication
,
Sockets: A First Look
,
Socket use cases
,
The Socket Layer
IronPython,
Python GUI Development Options
,
Python Internet Development Options
,
Extending and Embedding
,
Other Extending Tools
,
Other Integration Topics
development options,
Python Internet Development Options
integration considerations,
Extending and Embedding
,
Other Integration Topics
overview,
Python GUI Development Options
,
Other Extending Tools
ISPs (Internet Service Providers),
Generating Redirection Web Pages
,
Transferring Directories with ftplib
,
POP: Fetching Email
iterators, line,
Other os Module Exports
,
Reading lines with file iterators
,
Reading lines with file iterators
,
File filters
BOOK: Programming Python
3.42Mb size Format: txt, pdf, ePub
ads

Other books

All the Way Home by Wendy Corsi Staub
Elect (Eagle Elite) by Van Dyken, Rachel
En tinieblas by Léon Bloy
Bloody Mary by Carolly Erickson
The Last Highlander by Sarah Fraser
Her Best Mistake (Novella) by McDonald, Donna