Python Cookbook 1st Edition by Alex Martelli, David Ascher – Ebook PDF Instant Download/Delivery: 0596001673, 9780596001674
Full download Python Cookbook 1st Edition after payment

Product details:
ISBN 10: 0596001673
ISBN 13: 9780596001674
Author: Alex Martelli, David Ascher
Python Cookbook 1st Table of contents:
1. Python Shortcuts
-
Swapping values without using a temporary variable
-
Constructing a dictionary without excessive quoting
-
Getting a value from a dictionary
-
Using dictionaries to simulate switch/case statements
-
Using a dictionary to count the occurrences of items
-
Merging dictionaries
-
Inverting a dictionary
-
Merging two lists into a dictionary
-
Extracting a subset of a dictionary
-
Using lists as stacks or queues
-
Initializing a list to a fixed number of elements
-
Initializing a multidimensional array
-
Flattening a nested sequence
2. Searching and Sorting
-
Sorting a dictionary
-
Sorting while guaranteeing sort stability
-
Sorting by one field, then by another
-
Case-insensitive string comparisons
-
Binary search
-
Finding the intersection of two lists
-
Removing duplicates from a sequence
-
Finding the most frequent items in a sequence
3. Text
-
Processing a string one character at a time
-
Testing if an object is string-like
-
Aligning strings
-
Expanding tabs
-
Trimming whitespace
-
Converting between characters and integers
-
Encoding and decoding strings
-
Parsing strings with regular expressions
-
Replacing multiple patterns in a single pass
-
Removing unwanted characters
-
Checking for a prefix or suffix
-
Counting words or lines in a file
4. Files
-
Reading a file into a string
-
Reading a file line-by-line
-
Writing to a file
-
Appending to a file
-
Copying and moving files
-
Getting file size and modification time
-
Traversing directories
-
File locking
-
Temporary files
5. Object-Oriented Programming
-
Simulating private variables
-
Making a class property
-
Customizing string representation of objects
-
Delegation and proxy objects
-
Class decorators
-
Creating singleton objects
6. Threads, Processes, and Synchronization
-
Starting a new thread
-
Using thread-safe queues
-
Synchronizing threads
-
Using subprocesses
-
Avoiding deadlocks
7. System Administration
-
Running shell commands
-
Reading environment variables
-
Walking a directory tree
-
Creating and deleting files/directories
-
Checking free disk space
-
Sending email from a script
8. Databases and Persistence
-
Connecting to a database
-
Executing queries
-
Using parameterized queries
-
Fetching data
-
Serializing objects with pickle
-
Using shelve for persistent storage
9. User Interfaces
-
Creating a simple GUI with Tkinter
-
Handling events
-
Drawing in a canvas
-
Building menus and dialogs
10. Network Programming
-
Creating a simple client and server
-
Transferring files over sockets
-
Parsing URLs
-
Handling HTTP requests
-
Using FTP
11. Web Programming
-
Generating HTML
-
Handling forms
-
Managing cookies
-
Using a web framework
12. Processing XML
-
Parsing XML with SAX and DOM
-
Creating XML documents
-
Validating XML
13. Distributed Programming
-
Remote procedure calls
-
Using XML-RPC
-
Working with CORBA
14. Debugging and Testing
-
Using the debugger
-
Writing unit tests
-
Profiling code
-
Logging
15. Programs About Programs
-
Inspecting objects at runtime
-
Getting source code
-
Disassembling functions
-
Using reflection
16. Extending and Embedding
-
Writing Python C extensions
-
Embedding Python in C/C++ programs
-
Using SWIG
People also search for Python Cookbook 1st:
modern python cookbook
bioinformatics with python cookbook
quantlib python cookbook pdf
quantlib python cookbook
time series analysis with python cookbook
Tags: Alex Martelli, David Ascher, Python


