Book review: Core Python Programming <i>by Wesley J. Chun</i>

Book review: Core Python Programming by Wesley J. Chun


Programmers and system administrators have many options when it comes to choosing a language to write scripts. One excellent choice is Python, a programming language designed to be easy to learn yet powerful enough to complete real-world tasks and requirements. Core Python Programming, 2nd Ed. by Wesley Chun and published by Prentice Hall is the text that will guide you through the Python language and integration with other applications and programming languages. Mr. Chun presents both basic and advanced Python topics in an excellent manner. If you are looking to brush up on or learn Python, Core Python Programming, 2nd Ed. is the one book you need.

The front cover of Core Python Programming, 2nd Ed.The front cover of Core Python Programming, 2nd Ed.

At first glance, the book itself is large. It’s comparable to other programming books, but still looks large. Of course, it does cover a lot of material. The picture on the front cover shows people working together to place various objects in holes of the same shape. Those objects represent Python, and more specifically how Python can help fill the holes in your environment. This book goes into great detail about what exactly Python can do and how your Python applications can be shaped to work with your needs, whether they be CGI, database, GUI, or system administration.

This book goes into great detail about what Python can do for you

The contents

As mentioned previously, Core Python Programming, 2nd Ed. is a hefty book. It tips the scales at 1120 pages with probably 12 or 14 point font. The book is full of many code examples. One very cool feature is that immediately following each example is an explanation of each section of the example. This is very helpful in trying to discern exactly what is happening in the script. The other nifty feature is that code examples have keywords bolded. This makes reading a lot easier. Each chapter begins with a list of topics that will be discussed and ends with a list of exercises. This might be helpful for someone using the book to teach a class on Python programming. This book relates well the differences between Python and other popular languages, such as C/C++, Java, Perl, and PHP.

The book itself is split up into two parts, the core language, and advanced topics, comprising 23 chapters, two appendices and an index. The core language section discusses the basics, including strings, numbers, flow control, lists, operators, I/O, error handling, functions, modules, object-oriented programming, and how to execute Python scripts. The advanced section, which takes up the latter third of the book, includes topics such as regular expressions, network and internet programming, multithreaded design, GUIs, web and database access, extending Python, and concludes with information on Win32 COM and Jython/Java integration.

Who’s this book for?

This book is an incredible tool. It can be used very effectively for those with very little programming experience, since Python is an easy language to read. Additionally, the author brings up differences for programming veterans from other languages, which makes the book easy to learn Python. The exercises at the back of each chapter make it a nice candidate for an instructor of a Python programming class.

Relevance to free software

Everything in the text relates non-platform specific software, except for a small section on programming Microsoft Office with Win32 COM objects.

Pros

You should buy this book because it is the best reference guide and learning material on the Python programming language. The book is easy to follow and is an excellent place to start or brush up on your Python skills.

Cons

Python pros, or those looking for answers and examples to specific problems may not enjoy this book. The book is also not a complete reference of the Python language, but does do a very good job of explaining it.

Title Core Python Programming, 2nd Ed.
Author Wesley J. Chun
Publisher Prentice Hall
ISBN 0132269937
Year 2006
Pages 1120
CD included No
FS Oriented 9
Over all score 10

In short

Category: 
License: 

Comments

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

I was looking at that one at the bookstore the other day. I was wondering if someone did a review and here one is.

Robert

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Thank you for this particularly helpful (and properly done) book review. I will be getting a copy.

aroberge's picture
Submitted by aroberge on

Yes, there is always a "but"... I found the review to be informative and detailed enough to interest me in considering buying this book. However, I would have found it much more helpful, and credible, if the reviewer would have done some comparison with other Python textbooks. For example, how does it compare as a reference to "Python in a Nutshell"; or, as a learning text for beginners, to "Learning Python", "Programming Python" or "Beginning Python"; or, as a source of useful examples (alluded to in the "Cons" section) to the "Python Cookbook". I always find I learn more from book reviews that have a comparative sections with other books that I may already be familiar with. Also, as alluded to above, it helps to establish the credibility of the reviewer in his/her evaluation of the book.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!