Skip to content

Dive into Python

Best in textbook rentals since 2012!

ISBN-10: 1590593561

ISBN-13: 9781590593561

Edition: 2004

Authors: Mark Pilgrim

List price: $64.99
Shipping box This item qualifies for FREE shipping.
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, yet simple language to deploy their products. Dive Into Python is a hands-on guide to the Python language. Each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end. This is the perfect resource for you if you like to jump into languages fast and get going right away. If you're just starting to learn Python, first pick up a copy of Magnus Lie Hetland's Practical Python .
Customers also bought

Book details

List price: $64.99
Copyright year: 2004
Publisher: Apress L. P.
Publication date: 7/6/2004
Binding: Paperback
Pages: 432
Size: 7.01" wide x 9.25" long x 1.00" tall
Weight: 1.496
Language: English

Mark Pilgrim works as a developer advocate for Google, specializing inopen source and open standards. You may remember him from such classics as Greasemonkey Hacks (O'Reilly), Dive Into Python (Apress), and Dive Into Python 3 (APress). He lives in North Carolina with his wife, two boys, and a big slobbery dog.

About the Author
Introduction
Installing Python
Which Python Is Right for You?
Python on Windows
Python on Mac OS X
Python on Mac OS 9
Python on RedHat Linux
Python on Debian GNU/Linux
Python Installation from Source
The Interactive Shell
Summary
Your First Python Program
Diving In
Declaring Functions
Documenting Functions
Everything Is an Object
Indenting Code
Testing Modules: The if name Trick
Summary
Native Datatypes
Introducing Dictionaries
Introducing Lists
Introducing Tuples
Declaring Variables
Formatting Strings
Mapping Lists
Joining Lists and Splitting Strings
Summary
The Power of Introspection
Diving In
Using Optional and Named Arguments
Using type, str, dir, and Other Built-in Functions
Getting Object References with getattr
Filtering Lists
Understanding the Peculiar Nature of and and or
Using lambda Functions
Putting It All Together
Summary
Objects and Object-Orientation
Diving In
Importing Modules Using from module import
Defining Classes
Instantiating Classes
Exploring UserDict: A Wrapper Class
Using Special Class Methods
Introducing Class Attributes
Using Private Functions
Summary
Exceptions and File Handling
Handling Exceptions
Working with File Objects
Iterating with for Loops
Using sys.modules
Working with Directories
Putting It All Together
Summary
Regular Expressions
Diving In
Case Study: Street Addresses
Case Study: Roman Numerals
Verbose Regular Expressions
Case Study: Parsing Phone Numbers
Summary
HTML Processing
Diving In
Introducing Python's sgmllib.py
Extracting Data from HTML Documents
Understanding locals() and globals()
Using Dictionary-based String Formatting
Quoting Attribute Values
Parsing HTML One Tag at a Time
Putting It All Together
Summary
XML Processing
Diving In
Importing Python Packages
Parsing XML
Dealing with Unicode
Searching for XML Elements
Accessing XML Element Attributes
Summary
Scripts and Streams
Abstracting Input Sources
Using Standard Input, Output, and Error
Introducing Some XML Processing Techniques
Handling Command-Line Arguments
Putting It All Together
Summary
HTTP Web Services
Diving In
How Not to Fetch Data Over HTTP
Supporting HTTP Features
Debugging HTTP Web Services
Setting the User-Agent
Handling Last-Modified and ETag
Handling Redirects
Handling Compressed Data
Putting It All Together
Summary
SOAP Web Services
Diving In
Installing the SOAP Libraries
Taking Your First Steps with SOAP
Introducing WSDL
Searching Google
Troubleshooting SOAP Web Services
Summary
Unit Testing
Diving In
Introducing the Test Suite
Constructing Test Cases
Summary
Test-First Programming
Diving In (Stage 1)
Converting Roman Numerals
Converting Roman Numerals, Stage 3
Converting Roman Numerals, Stage 4
Converting Roman Numerals, Stage 5
Summary
Refactoring
Diving In
Handling Changing Requirements
Refactoring for Performance
Postscript
Summary
Functional Programming
Diving In
Finding the Path
Filtering Lists Revisited
Mapping Lists Revisited
Data-centric Programming
Dynamically Importing Modules
Putting It All Together
Summary
Dynamic Functions
Diving In
Pluralizing Nouns
Pluralizing Nouns, Stage 2
Pluralizing Nouns, Stage 3
Pluralizing Nouns, Stage 4
Pluralizing Nouns, Stage 5
Pluralizing Nouns, Stage 6
Summary
Performance Tuning
Diving In
Using the timeit Module
Optimizing Regular Expressions
Optimizing Dictionary Lookups
Optimizing List Operations
Optimizing String Manipulation
Summary
Python License
History of the Software
Terms and Conditions for Accessing or Otherwise Using Python
GNU Free Documentation License
Preamble
Applicability and Definitions
Verbatim Copying
Copying in Quantity
Modifications
Combining Documents
Collections of Documents
Aggregation with Independent Works
Translation
Termination
Future Revisions of This License
Addendum: How to Use This License for Your Documents
Index