Three books on Python


Authors: Daryl Harms and Kenneth McDonald
Publisher: Manning
ISBN: 1-8847-7774-0
Price: $39.95 US

Authors: Tim Altom with Mitch Chapman
Publisher: Prima Tech
ISBN: 0-7615-2334-0
Price: $39.99 US
Reviewer: Phil Hughes
Here we have three very different books. All were released in late 1999, doubling the number of available titles on Python.
Let me show my prejudices right away. Guido van Rossum wrote the forward to Python Essential Reference. This immediately made me expect more from this title, and I feel it delivered more.
Its intended audience is experienced programmers. While the first chapter is called “A Tutorial Introduction”, it is less than 11 pages long and would be of little use to a newcomer to programming. If, however, you are new to Python but not to programming, the chapter is a good introduction.
The next chapter, only four pages long, introduces you to the Lexical Conventions and Syntax of Python. While this sounds extremely short, Python has a very simple syntax and the chapter does cover the material.
The book continues in this local fashion with Chapter 3 discussing Types and Objects, Chapter 4 Operators and Expressions and, in Chapter 5, Control Flow. All this material is covered in the first 53 pages of the book. Being an experienced programmer, I found the coverage adequate and I didn't get bored or bogged down.
We continue the fast pace with Chapters 6 through 9 on Functions, Object, Modules and Classes. The final two chapters cover I/O and the execution environment. While these are the last sections labeled “chapters”, we are still only on page 86. Next comes all the reference information. Labeled A and B, the first is titled “The Python Library” and the second “Extending and Embedding Python”. The section on the library goes from pages 87 through 245 and does what you would expect for a library reference.
As with C, much of the power is in the library rather than in the language itself, and section A does an excellent job of covering the material. It is logically divided (Built-in Functions and Exceptions, Python Services, Mathematics, String Handling and so forth) and then the functions are listed alphabetically within each division.
Each division starts with introductory information. For example, Threads starts with Thread Basics and Python Threads before introducing the available functions. Examples are included where necessary to clarify the function use.
The final section, Extending and Embedding Python, is divided up much like the previous section. Examples include Enabling Optional Modules, Converting Data from Python to C and Error Handling. Sprinkled with the needed tables and code examples, coverage seems very complete.
I would highly recommend this book as a reference for any Python programmer, and a good place to start for an experienced programmer who is new to Python.
The Quick Python Book is a totally different animal. I don't mean that in a bad way—the intended audience is just much different. To give you the basic idea, on page 29 we see the start of Chapter 4, the Quick Python overview. In the next chapter, we see the introduction of indentation and block structuring. Finally, by page 90 we see control flow statements introduced.
In those first 90 pages, the reader has been encouraged to type in code fragments at the Python prompt and see what happens. This gives very positive feedback, the kind a non-professional programmer will surely need as he is learning the language.
A lot of time was put into not just teaching a language but also showing how it interacts with the operating system and what one can do with it. For example, Chapter 25 is titled “HTML and Python”. The chapter is filled with web page examples, showing how to create the HTML from Python. For those very serious about the Web, there is even a chapter on using Zope.
Finally, the appendix is titled “The Quick Python reference”. It has much less detail the equivalent information in Python Essential Reference, but it does complement the tutorial information nicely.
This is another good book. I highly recommend it for the beginning and intermediate Python audience. It is the best book I have seen for getting beginners up to speed.
The third book, Programming with Python, is again very different. Rather than being a tutorial or a reference, it is a book of examples. The examples take the form of scripts that are either openly available or were donated to the book.
At first, I thought I would like the idea. After spending some time with the book, I decided I don't like it. After a few (or a few dozen) scripts followed by an explanation of how they work, I got bored. Some of the scripts are cute, and many offer reasonable examples, but I just don't see it as a good learning tool. After all, with the amount of open-source code out on the Internet, why buy a book that shows what someone else has selected as interesting?
My recommendation is that if you want to see a lot of Python code, go out to the python.org web site and start looking around. You are more likely to find what you want, and you can save $39.99 in the process.
Phil Hughes is the publisher of Linux Journal. He can be reached via e-mail at p hil@ssc.com.
Phil Hughes
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- RSS Feeds
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Designing Electronics with Linux
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- A Topic for Discussion - Open Source Feature-Richness?
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Validate an E-Mail Address with PHP, the Right Way
- What's the tweeting protocol?
- Kernel Problem
8 hours 16 min ago - BASH script to log IPs on public web server
12 hours 43 min ago - DynDNS
16 hours 19 min ago - Reply to comment | Linux Journal
16 hours 51 min ago - All the articles you talked
19 hours 15 min ago - All the articles you talked
19 hours 18 min ago - All the articles you talked
19 hours 19 min ago - myip
23 hours 44 min ago - Keeping track of IP address
1 day 1 hour ago - Roll your own dynamic dns
1 day 6 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?





Comments
I did poos and it smells.
I did poos and it smells.