Logo         Community
The Company
Your Account
Contact Us
Python 101 (part 8): An Exceptionally Clever Snake
Use Python's exception handlers to avoid violent - and potentially embarrassing - flame-outs.

| Not Your Regular Tour |

If you've been following along since the beginning, I think you'll agree with me that it's certainly been an interesting eight weeks.

Together, we've visited all the standard attractions - we've thumbed through the rulebook for strings, numbers, lists, dictionaries and those oddly-named tuples; mucked around with system files and directories; packaged code into functions and functions into modules; and dissected the Python interpreter and some of Python's innumerable built-in functions - and indulged in some decidedly non-standard activities - learning the names of exotic Italian dishes; stomping on all kinds of creepy-crawlies; attempting to con unwitting customers into purchasing air in a bottle; and hooking up with old flames, new superheroes and the complete cast of "Star Wars".

In this concluding article, I'm going to be demonstrating Python's error-handling routines, and showing you how to wrap your code in them to avoid violent - and potentially embarrassing - flame-outs. I'll be explaining the different types of errors you might encounter and the Python constructs available to manage them, with examples that demonstrate just how powerful this capability really is.

Talk about getting your money's worth!

How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.

Read more, or grab your copy now!

more like this print this article  next page
In trog...
Logging With PHP
Building A Quick-And-Dirty PHP/MySQL Publishing System
Output Buffering With PHP
Date/Time Processing With PHP
Creating Web Calendars With The PEAR Calendar Class
In the hitg report...
Crime Scenes
Animal Attraction
Lord Of The Strings
In boombox...
Patience - George Michael
Think Tank - Blur
My Private Nation - Train
In colophon...
Hostage - Robert Crais
The Dead Heart - Douglas Kennedy
Right As Rain - George Pelecanos
In cut!...
American Chai
The Core
Find out how you can use this article on your own Web site!

Copyright © 1998-2018 Melonfire. All rights reserved
Terms and Conditions | Feedback