Python Phrasebook
, by Dayley, Brad- ISBN: 9780672329104 | 0672329107
- Cover: Paperback
- Copyright: 11/6/2006
Brad Dayley is a senior software engineer in Novell’s Nterprise Development Group. He has 14 years of experience installing, troubleshooting, and developing Novell’s products for NetWare and Linux. He is the co-author of Novell’s Guide to Resolving Critical Server Issues, as well as seven other Novell Press titles on the ZENworks suite.
When he is not writing books or software, he can be found biking, hiking, and/or Jeeping somewhere in the remote regions of the Pacific Northwest with his wife, DaNae, and four sons.
Understanding Python | p. 3 |
Why Use Python? | |
Invoking the Interpreter | |
Built-In Types Understanding | |
Python Syntax Python Objects, Modules, Classes, and Functions Error | |
Handling Using System Tools | |
Manipulating Strings | |
Comparing Strings | |
Joining Strings | |
Splitting Strings | |
Searching Strings for Substrings | |
Search and Replace in Strings | |
Searching Strings for Specific Endings/Beginnings | |
Trimming Strings | |
Aligning/Formatting Strings | |
Executing Code Inside Strings | |
Interpolating Variables Inside Strings | |
Converting Unicode to Local Strings | |
Managing Data Types | |
Defining a List | |
Accessing a List Slicing a List | |
Adding and Removing Items in a List | |
Sorting a List | |
Using Tuples | |
Constructing a Dictionary | |
Adding a Value to a Dictionary | |
Retrieving a Value from a Dictionary | |
Slicing a Dictionary | |
Swapping Keys for Values in a Dictionary | |
Managing Files Opening and Closing Files | |
Reading an Entire File | |
Reading a Single Line from a File | |
Accessing Each Word in a File | |
Writing a File | |
Determining the Number of Lines in a File | |
Walking the Directory Tree | |
Renaming Files | |
Recursively Deleting Files and Subdirectories | |
Searching for Files Based on Extension | |
Creating a TAR File | |
Extracting a File from a TAR File | |
Adding Files to a ZIP File | |
Retrieving Files from a ZIP File | |
Managing Threads | |
Starting a New Thread | |
Creating and Exiting Threads | |
Synchronizing Threads | |
Implementing a Multithreaded Priority Queue | |
Initiating a Timer-Interrupted Thread | |
Managing Databases | |
Adding Entries to a DBM File | |
Retrieving Entries from a DBM File | |
Updating Entries in a DBM File | |
Pickling Objects to a File | |
Unpickling Objects from a File | |
Storing Objects in a Shelve File | |
Retrieving Objects from a Shelve File | |
Changing Objects in a Shelve File | |
Connecting to a MySQL Database Server | |
Creating a MySQL Database | |
Adding Entries to a MySQL Database | |
Retrieving Entries from a MySQL Database | |
Implementing Internet Communication | |
Opening a Server-Side Socket for Receiving Data | |
Opening a Client-Side Socket for Sending Data | |
Receiving Streaming Data Using the ServerSocket Module | |
Sending Streaming Data | |
Sending Email Using SMTP | |
Retrieving Email from a POP3 Server | |
Using Python to Fetch Files from an FTP Server | |
Processing HTML | |
Parsing URLs | |
Opening HTML Documents | |
Retrieving Links from HTML Documents | |
Retrieving Images from HTML Documents | |
Retrieving Text from HTML Documents | |
Retrieving Cookies in HTML Documents | |
Adding Quotes to Attribute Values in HTML Documents | |
Processing XML | |
Loading an XML Document | |
Checking for Well-Formed XML Documents | |
Accessing Child Nodes | |
Accessing Element Attributes | |
Adding a Node to a DOM Tree | |
Removing a Node from a DOM Tree | |
Searching XML Documents | |
Extracting Text from XML Documents | |
Parsing XML Tags | |
Programming Web Services | |
Adding HTML to Web Pages Using CGI Scripts | |
Processing Parameters Passed to CGI Scripts | |
Creating Self-Posting CGI Scripts | |
Allowing Users to Upload Files via CGI Scripts | |
Creating an HTTP Server to Handle GET Requests | |
Creating an HTTP Server to Handle POST Requests | |
Creating an HTTP Server to Process CGI Scripts | |
Sending an HTTP GET Request from a Python Script | |
Sending an HTTP POST Request from a Python Script | |
Creating an XML-RPC Server | |
Crea | |
Table of Contents provided by Publisher. All Rights Reserved. |
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.