-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed as not planned
Closed as not planned
Copy link
Labels
3.13bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
here's a demo in the repl
>>> class Foo:
... def __del__(self):
... raise BaseExceptionGroup("the bad", [Exception("critical debug advice here")])
...
>>> f = Foo()
>>> del f
Exception ignored in: <function Foo.__del__ at 0x7f2f59df2200>
Traceback (most recent call last):
File "<stdin>", line 3, in __del__
ExceptionGroup: the bad (1 sub-exception)
>>>
@vstinner @iritkatriel I'm not sure if this is an omission or by design, but if an exception with critical debug advice is raised in an exceptiongroup during __del__ I can't see the type or error message
I expected the output to include:
+ Exception Group Traceback (most recent call last):
| File "<stdin>", line 1, in <module>
| ExceptionGroup: the bad (1 sub-exception)
+-+---------------- 1 ----------------
| Exception: critical debug advice here
+------------------------------------
FRidh
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement