Programming Python
|
| List Price: | $59.99 |
| Price: | $37.79 & eligible for FREE Super Saver Shipping on orders over $25. Details |
Availability: Usually ships in 24 hours
Ships from and sold by Amazon.com
55 new or used available from $9.36
Average customer review:Product Description
Whether you're a novice or an advanced practitioner, you'll find this refreshed book more than lives up to its reputation. "Programming Python," 3rd Edition, teaches you the right way to code. It explains Python language syntax and programming techniques in a clear and concise manner, with numerous examples that illustrate both correct usage and common idioms. By reading this comprehensive guide, you'll learn how to apply Python in real-world problem domains such as: GUI programming Internet scripting Parallel processing Database management Networked applications
"Programming Python," Third Edition covers each of these target domains gradually, beginning with in-depth discussions of core concepts and then progressing toward complete programs. Large examples do appear, but only after you've learned enough to understand their techniques and code.
Along the way, you'll also learn how to use the Python language in realistically scaled programs--concepts such as Object-Oriented Programming (OOP) and code reuse are recurring side themes throughout this text. If you're interested in Python programming, then this O'Reilly classic needs to be within arm's reach. The wealth of practical advice, snippets of code, and patterns of program design can all be put into use on a daily basis--making your life easier and more productive.
Reviews of the second edition:
,,"."about as comprehensive as any book can be.""
--Dr.Dobb's Journal
""If the language had manuals, they would undoubtedly be the texts from O'Reilly...'Learning Python' and 'Programming Python' are definitive treatments.""
--SD Times
Product Details
- Amazon Sales Rank: #38787 in Books
- Published on: 2006-08-01
- Original language: English
- Number of items: 1
- Binding: Paperback
- 1552 pages
Editorial Reviews
Amazon.com Review
Completely revised and improved, the second edition of Programming Python is an excellent compendium of material geared toward the more knowledgeable Python developer. It includes dozens of reusable scripts for common scripting tasks, and is one of the best available sources of information for this popular object-oriented scripting language.
In over 1,200 pages of material, this book offers an extremely comprehensive guide to Python development. Though his book is densely packed with information, Mark Lutz is a lively and witty writer whose focus is on getting things done using the natural strengths of the Python language. To that end, after an introduction and history of the language, the book shows how to use Python for performing automated tasks with files and directories (for example, for doing backups both locally and on Web servers). Not only will this book teach you more about Python, but it will also give you a library of code that you can use as is or adapt for your own projects.
The text covers every conceivable facet of Python and the language's support for networking, files and directories, task management, and even persistence (through its support for shelves). Complete Python programs show how to create e-mail clients, do reporting, and create Web applications (for an online errata database). Chapters on doing graphics programming in Python, as well as coverage of both built-in and custom data structures, are especially good. Because Python is often used for automating installations (in some Linux distributions, for instance), readers will appreciate the sample code and tips for using Python to create bulletproof installs.
Later sections show how get Python to work with C, Java (through JPython), and other languages. The book concludes with useful reference sections summarizing key aspects of Python, like its revision history, relationship to C++, and other material. There aren't many titles on Python, and fans of this up-and-coming language are lucky to have such a solid tutorial and guide available in Programming Python. Perfect for those with just a little previous exposure to the language, it's all you need to master Python in-depth and tap its considerable power for virtually any software project. --Richard Dragan
Topics covered:
- Introduction to Python
- Basic system scripts with Python (including file and directory tools)
- Working with processes and threads
- Pipes and signals
- Sample scripts for system and Web utilities (including backing up files, program launching, replicating and managing directories)
- Graphical user interface design in Python (including the Tkinter module)
- Widgets and basic components
- Layout options
- Event handling
- GUI examples (including a working text editor, image viewer, and clock)
- Network scripting (sockets, FTP, and e-mail clients)
- Server-side scripting
- Sample server scripts for an online errata database
- Python on the Internet (including Zope, JPython, and XML tools)
- Databases and persistence in Python (including pickled objects and shelf files)
- Custom and built-in data structures in Python
- Text and string handling
- C integration with Python (including the SWIG module)
- Embedding Python calls within C
- Hints for using Python in real projects
- Reference to recent changes to Python
- Python vs. C++ quick-start guide
Review
"It's the industry standard publication on Python, but don't be put off if you're a beginner. It takes a lot of shelf space, but it's worth it!" .NET, February 2007
From the Publisher
Programming Python is a classic O'Reilly Nutshell Handbook describing the use of the Python programming/scripting language. Python is a popular scripting language freely available over the Net. Like Perl, Python is powerful, but easier to use than a traditional compiler language like C or C++. Although it is used mostly in UNIX environments (including Linux), it is available on Windows and Mac platforms as well. Unlike Perl, Python uses an object-oriented paradigm, making it a particularly useful scripting language for C++ programmers and the Windows/OLE and Mac environments. This book will serve the Python community as our Programming Perl book does for the Perl community. This book complements the online reference material provided with the Python releases. It is endorsed by the creator of Python, Guido van Rossum, who wrote the foreword. The CD-ROM included with the book contains Python 1.3 binaries for most popular UNIX platforms, as well as Linux, Windows, NT, and the Mac. This book is the most comprehensive Python user material available from any publisher. It contains a number of running examples, presented simply at first but becoming more complex as new issues appear. Examples describing Graphical User Interface (GUI) programming use the Tk language. (Tk is usually considered a part of the Tcl scripting language, but is in fact usable with other scripting languages like Perl and Python.) An appendix contains a separate short language tutorial.
Customer Reviews
poorly organized introduction to python
I thought this would be similar to Programming Perl, both a good introduction to the language *and* a decent reference. Unfortunately, it does neither task well.
It fails as a reference because 1) it is poorly organized: information on each concept (printing, for example), is scattered throughout the book; 2) the index is atrocious. There is no way to find the key description of any part of the language using the index, and I often find important concepts in the book that are not in the index.
The poor index, combined with the scattered organization, means I'm constantly frustrated when I want to look up some particular element of the language.
As an introduction, the book is OK. I would have liked to see some meatier code examples. As another reviewer mentioned, the examples are more about the syntax of the language than actual applications that you might learn from. This is a style point -- if you learn best from large chunks of example code, this is not the book for you.
Also, key modules (sys and math, for example) are barely mentioned.
--Pat / zippy@cs.brandeis.edu
Definitely not a "get started quick" guide
Wow. I have mixed feelings about this book. On the one hand, it's enormous. It took me almost a year to go through the whole thing, although I did stop and work through every single example. On the other hand, like "Learning Python", there are a lot of sidetracks that seem targeted at beginners which I felt could have easily been left out.
This book should be considered volume 2 of "Learning Python". "Learning Python" (or "volume 1") covers the core Python language in quite a bit of detail, but doesn't talk much about the library. "Programming Python", in turn, covers the Python library, but doesn't talk about the syntax of the language (you're expected to know all that already).
Even with 1500 pages, it would be impossible to do justice to the _entire_ Python library, so a useful subset is covered. The book is actually divided into seven subsections, and sections 2 (System Programming), 3 (GUI Programming), 4 (Internet Programming), and 5 (Tools and techniques) could each have legitimately been a book in their own right. Part 6 (Integration) was a bit weak compared to the others - it covered only two chapters, and was the only section of the book that included incomplete examples. Of course, Parts 1 & 7 were an introduction and an epilogue.
In terms of the Python standard library, "String Services", "File and Directory Access", "Data Persistence", "Generic Operating System Services", "Interprocess Communcation and Networking", "Internet Protocols and Support", and "Graphical User Interfaces" were covered indepth. "Internet Data Handling" and "Structured Markup Tools" were both touched on, but not really examined. Other Python-related topics such as Jython, Zope, ZODB and SWIG were discussed as well, along with examples.
The main strength of this book was its examples. I prefer to manually type each source example and run them, rather than downloading them from a web site - although it takes longer to work through the book that way, I end up retaining quite a bit more. For that reason, I'm frustrated by programming books that include incomplete examples (or at least not enough that I can reasonably fill in the blanks). Fortunately, this wasn't such a book - until the very last chapter, all of the examples were complete, although quite a few of them build on previous examples (sometimes a bit pointlessly, such as his GUIMixin "framework"). Chapter 15, for example, is pretty much nothing but a listing of a complete, working e-mail GUI client - I was actually able to use this to check my own e-mail (POP only... but still!)
Section 3 on GUI programming is the best coverage on TKinter available anywhere. This section alone is worth the price of the book, if you're ever going to touch TKinter. He doesn't cover Tix, unfortunately, but I believe that every single TKinter widget is discussed and demonstrated in example code. PMW and wxPython are mentioned, but just as in, "they exist" - this books perspective on GUI programming is TKinter only. Still, that's plenty to fill up 5 chapters.
This _is_ a good, useful, book - I got a lot more out of this than I got out of "Learning Python", but it can be a bit meandering at times - for its volume, I expected it to cover a lot more ground, although what the author does decide to cover, he covers in exquisite detail, including historical perspectives, real-world "war stories" and workable examples.
A great resource for the python programmer.
The only thing I regret about buying this book is not getting the hardcover version - it's a huge, comprehensive book.
It's got the best section on GUI programming in python that I've seen so far, and all the examples given throughout the book are practical, useful thing - unlike a lot of other programming books that only give you proofs-of-concept.
If you're already comfortable with python, and are looking to solidify your knowledge of it to a great degree, this is the book for you.



