https://bugs.kde.org/show_bug.cgi?id=369367
Nicolás Alvarez <nicolas.alva...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|NOR |LO --- Comment #1 from Nicolás Alvarez <nicolas.alva...@gmail.com> --- Ugh, this is trickier than I thought because it's not really a "scope". Python pretty much runs 'del exc' after the except block. exc = "hello world" try: a=1/0 except Exception as exc: print(exc) print(exc) The second print statement will raise a NameError, it will neither print the exception nor "hello world". So it's not a matter of using a different setup of DUContexts to create a scope; you would need support for deleting individual variables. -- You are receiving this mail because: You are watching all bug changes.