FAQ
Hello,
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
exceptions?
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?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-list/attachments/20060602/0b3fc395/attachment.htm

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedJun 2, '06 at 1:21p
activeJun 5, '06 at 9:29p
posts4
users3
websitepython.org

People

Translate

site design / logo © 2022 Grokbase