Awsome Python - chained exceptions

Chris Angelico rosuav at gmail.com
Fri Feb 15 01:18:17 EST 2013


On Fri, Feb 15, 2013 at 1:56 PM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> On Thursday, February 14, 2013 6:01:51 AM UTC-6, Ulrich Eckhardt wrote:
>> [...]
>>
>> try:
>>      rrick.go_and_[edit]_yourself()
>> finally:
>>      rrick.get_lost()
>
> Oops, you forgot to catch "FloatingPointError" and so your code choked in the try block -- typical newbie mistake.

And yet it is still a perfect example of how a line of code inside a
'try' block can indeed be offensive. This has nothing to do with
exceptions, and everything to do with societal practices and
acceptable language. The fact that you edited it out of your quote
shows just how offensive the expression is. :)

May I ring your schoolbell?

ChrisA



More information about the Python-list mailing list