Dive Into Python and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Start reading Dive Into Python on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Dive Into Python [Paperback]

Mark Pilgrim
4.2 out of 5 stars  See all reviews (45 customer reviews)

List Price: $39.99
Price: $27.16 & FREE Shipping. Details
You Save: $12.83 (32%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $17.27  
Paperback $27.16  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

July 19, 2004

Whether you're an experienced programmer looking to get into Python or grizzled Python veteran who remembers the days when you had to import the string module, Dive Into Python is your 'desert island' Python book.

— Joey deVilla, Slashdot contributor

As a complete newbie to the language...I constantly had those little thoughts like, 'this is the way a programming language should be taught.'

— Lasse Koskela , JavaRanch

Apress has been profuse in both its quantity and quality of releasesand (this book is) surely worth adding to your technical reading budget for skills development.

— Blane Warrene, Technology Notes

I am reading this ... because the language seems like a good way to accomplish programming tasks that don't require the low-level bit handling power of C.

— Richard Bejtlich, TaoSecurity

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.

Table of Contents

  1. Installing Python
  2. Your First Python Program
  3. Native Datatypes
  4. The Power of Introspection
  5. Objects and Object-Orientation
  6. Exceptions and File Handling
  7. Regular Expressions
  8. HTML Processing
  9. XML Processing
  10. Scripts and Streams
  11. HTTP Web Services
  12. SOAP Web Services
  13. Unit Testing
  14. Test-First Programming
  15. Refactoring
  16. Functional Programming
  17. Dynamic Functions
  18. Performance Tuning

Frequently Bought Together

Dive Into Python + Python Essential Reference (4th Edition) + Python Pocket Reference: Python in Your Pocket (Pocket Reference (O'Reilly))
Price for all three: $69.35

Buy the selected items together


Editorial Reviews

Review

"...may be one of the thinnest programming language books on my shelf, but it's also one of the best." -- Slashdot, AccordianGuy, September 8, 2004

About the Author

By day, Mark Pilgrim is a developer advocate for open source and open standards. By night, he is a husband and father who lives in North Carolina with his wife, his two sons, and his big slobbery dog. He spends his copious free time sunbathing, skydiving, and making up autobiographical information.

Product Details

  • Paperback: 413 pages
  • Publisher: Apress (July 19, 2004)
  • Language: English
  • ISBN-10: 1590593561
  • ISBN-13: 978-1590593561
  • Product Dimensions: 7.1 x 1.4 x 9.1 inches
  • Shipping Weight: 1.4 pounds (View shipping rates and policies)
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (45 customer reviews)
  • Amazon Best Sellers Rank: #284,216 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

I highly recommend it to anyone who wants to learn Python. Paul J. Mantyla  |  9 reviewers made a similar statement
The book gave me more credit than a book like Learning Python which starts at the very basics. Jack D. Herrington  |  10 reviewers made a similar statement
I like Mark's writing style, very clear and easy to read. Cheng Fei-wen  |  7 reviewers made a similar statement
Most Helpful Customer Reviews
88 of 92 people found the following review helpful
5.0 out of 5 stars Great book & it comes for free! December 29, 2004
Format:Paperback
I am definitely a C++ & Java aficionado (or bigot , you might say) but I think Python is one scripting language that is worth some studying. This book is a very clear, practically oriented introduction, best suited for people who already know how to program in some other language. It gives you a solid knowledge of Python fundamentals with an accent on parsing HTML and XML. Ah I forgot the best part... you do not have to buy the book! It is available for free download at diveintopython.org ... but the book is so good and the price so "right" that you might consider buying the hardcopy. Thank you Mark!
Was this review helpful to you?
54 of 57 people found the following review helpful
5.0 out of 5 stars Great Book for Experienced Programmers May 18, 2005
Format:Paperback|Amazon Verified Purchase
If you've never programmed before, Python is an excellent language to learn modern programming techniques. But this book should not be your starting point. Get "How to Think Like a Computer Scientist: Learning with Python" by Allen Downey, Jeffrey Elkner, Chris Meyers and learn the basics. Then dive into this book.

Mark Pilgrim is an extremely accessible author. He teaches by example. Each chapter teaches powerful techniques and Python idioms by creating a useful program. Anybody with programming experience should be able to follow the examples and learn the language - although a few visits to the Python website docs may help along the way.

Each example is brief and annotated. The annotations combine with explanatory text to reveal the power of this incredible programming language. Python runs on virtually any popular platform and can be downloaded for free. Mark's excellent work will help empower the reader to do useful things almost immediately.

One of the early example programs reads through a directory of MP3 files and lists the header information, such as artist, album, etc. This is accomplished with just a few lines of code.

Mark makes the point that everything in Python is an object. While this is not a text on hard-core object oriented programming, it is an excellent opportunity for the OOP beginner to get a handle on it.

Pilgrim also emphasizes good programming techniques, such as documentation and unit testing. In one of the later chapters he even creates a Python unit testing framework that works for testing Python code to see if it performs as expected. Again, this example is annotated, used to develop both the software engineering skill of unit testing AND properties of the Python language.

He also covers accessing websites and parsing HTML and XML code. This is just an introduction to these subjects. Those interested in learning this in depth will want to continue their reading with other books and web pages focused on these topics.

The book is not dry or boring. It is not a manual. It is an excellent example of how to use the language AND how to think like a master programmer. The latter is reason enough to buy the book even if you're familiar with Python and have been coding for years.

It's a fun read. It's a great second book for somebody learning to program. It's a powerful example for those wishing to improve their programming style and/or learn object programming. I cannot say enough good things about it.

Furthermore, Mark maintains a website and blog. His articles vary from technically dense to enticingly interesting. He's even responded to email I sent him. How many authors do that?

If you found your way to this page, GET THE BOOK! Being here is proof that it's a good match for you. And if you just want to learn to program and have no experience - get the book anyway, then get a more basic book to go with it. DIVE INTO PYTHON will make you a quality programmer if you work your way through it.
Comment | 
Was this review helpful to you?
27 of 28 people found the following review helpful
5.0 out of 5 stars EXCELLENT intro to Python for programmers May 8, 2004
Format:Paperback
If you are already a programmer by trade, but haven't yet started to learn Python, get this book either here or from the web site (just search to find it), and dive in. Each chapter starts with an small example program that actually does useful stuff, most of which is foreign to you when you start reading. A few pages later, you'll understand the whole program, and get a good feeling for what "Pythonic" programming is all about.

The author really understands the subject matter, and he really understands what is needed by readers who already have a strong programming background. Once you've worked your way through this book, you'll understand 1) Python, 2) Good programming practices in Python, and 3) Why Python has become such a success amongst professional programmers.

NOTE: If you don't already know programming, hold off on this book until later. If the whole topic of programming is brand new to you, go instead for Mark Lutz' book, "Learning Python (2nd edition)". Mark covers in great detail what could go wrong as you try things out. He insures you won't get lost. To do that, he has to be very explicit about everything. Experienced programmers don't need nearly so much detail, as they already know most of the stuff in the Lutz book, and will find themselves skipping trememdous amounts. These are the folks for whom this book is written.

I am finding this to be a great book for evangelization of others to the ranks of Python maniac.

Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars excellent book
A really Excellent book.
Highly recommended to read.
But I do not recommend to buy it for Kindle and pay $17. Read more
Published 2 months ago by maro
1.0 out of 5 stars theory based
just download it. the document is pretty much free on the internet. There aren't alot of good examples to base the language off of
Published 4 months ago by Kelly Ryan
5.0 out of 5 stars Best Python Book for Starters. Period!
Need I say more? Mark Pilgrim might have retired from the interwebs but his work remains online and in print. Read more
Published 5 months ago by Tech Junkie
2.0 out of 5 stars I feel suckered...
I thought I was getting a current publication since the Amazon ad gave a very recent 2012 publishing date in parens next to the title. Turns out this is a republished 2004 book. Read more
Published 12 months ago by D. Towey
5.0 out of 5 stars Great Intro to Python
This book uses some really good sample projects to introduce you to the core of Python: lists, dictionaries, list comprehensions, generators, test driven development etc. Read more
Published 18 months ago by D. Peters
1.0 out of 5 stars Do not buy the printed version
I bought the print copy of Dive Into Python '20 May 2004' and regret it.

The 2009 SoHo Books edition is just a reprint of an earlier edition; it isn't updated for... Read more
Published 19 months ago by christopher williams
5.0 out of 5 stars Great quick read
Enjoyed the book, I wish it was easier to find more programming books like this one. Sadly most quality programming books think everyone is a beginner and its almost impossible to... Read more
Published 21 months ago by dranobob
1.0 out of 5 stars "Zero care" applied to printing
This is one of those "print on demand" books. These folks are are simply providing the service of printing and binding: but they have done it badly. Read more
Published on November 10, 2010 by brycen
5.0 out of 5 stars Okay Book
Mark Pilgrim's Dive Into Python books are exactly what they say they are: a way to jump straight into Python development. This is both a benefit and an hindrance. Read more
Published on June 17, 2010 by Andrei Mouravski
5.0 out of 5 stars Excellent Introduction for Experienced Programmers
Dive into Python should be the first stop for learning Python for any experienced programmer. Moving immediately into interesting, relevant examples, this book makes learning this... Read more
Published on May 24, 2010 by Ryan Kelly
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

Search Customer Discussions
Search all Amazon discussions

Start a new discussion
Topic:
First post:
Prompts for sign-in
 




So You'd Like to...



Look for Similar Items by Category