Error Trapping In Python
Jonathon
jblake at eskimo.com
Thu Jul 8 17:54:22 EDT 1999
Hans Nowak (ivnowa at hvision.nl) wrote:
: On 7 Jul 99, Jonathon wrote:
: > int ( read_data ) gives a Value Error, if non numerical
: You can trap such errors with exceptions... A simple example:
Now I feel like an idiot. Especially since I had
been looking at that page in the pocket reference.
: There are others ways, of course. For instance, you could scan that
: string and filter out any unwanted characters (other than 0-9,
I'll do that for the field that has financial data in it.
xan
jonathon
--
I'm still looking for a good book on
3: The Recent Unpleasantness
1: The War Of Northern Aggression.
2: The War of Southern Rebellion.
More information about the Python-list
mailing list