Catching an exception in a variable

Steve D'Aprano steve+python at pearwood.info
Fri Aug 4 07:05:00 EDT 2017


On Fri, 4 Aug 2017 06:21 pm, Ben Finney wrote about the unbinding of exception
variable on leaving the except block:

> I think this is a terrible idea.


I agree it is a terrible idea. I'd go so far as to say it is the worst possible
way for dealing with the program of exception reference loops, except for all
the others.

*wink*



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list