News for hackers. Stuff that matters.
Re:What’s New in Python 3.8 by arnsholt on Tuesday October 15, 2019 @07:54AM (#21257540)
Yeah, it all seems a bit hacky. Especially the bit where a caught exception bound to a variable is cleared at the end of the `except` clause. I'm pretty sure it's because if you didn't you'd get a reference cycle (exception object -> stack trace -> function invocation record -> function locals -> exception object), which makes CPython's GC sad.

There are no comments on this comment yet.