Which exceptions are recommended to me handled?

Florencio Cano florencio.cano at gmail.com
Fri Jun 2 15:21:20 CEST 2006

Is it recommended as a good programming practice to catch all exceptions and
raise our own exceptions or let Python itself raise these kinds of
For example imagine a function that needs an integer and '34' is passed,
this is ok because inside the function it uses int(variable) but if a
'hello' is passed it will raise a ValueError exception.
Is it better to handle this exception or let Python raise directly
ValueError and stop execution or what is recommended?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060602/0b3fc395/attachment.html>

More information about the Python-list mailing list