GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — contextlib.suppress does not support ExceptionGroups · Issue #103791 · python/cpython Closed Labels type-featureA feature request or enhancementA feature request or enhancement DescriptionCurrently, In other words, this works: def raise_ve(): raise ValueError("ve") with suppress(ValueError): raise_ve() while this doesn't: def raise_ve_eg(): raise ExceptionGroup("eg", [ValueError("ve")]) with suppress(ValueError): raise_ve_eg() The user's intent is to suppress the latter case, too. It should work just as well, removing def raise_ve_eg3(): raise ExceptionGroup("eg", [ValueError("ve1"), KeyError("ke"), ValueError("ve2")]) with suppress(ValueError): raise_ve_eg3() should raise an Linked PRsReacted by Lars Alexander Blumberg Activity
MetadataMetadataAssigneesLabelstype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |