exceptiongroup

Backport of PEP 654 (exception groups)

bacaro: haikuports also on HaikuPorts
Also on HaikuPorts. exceptiongroup

Description

This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11.

It contains the following: - The exceptiongroup.BaseExceptionGroup and exceptiongroup.ExceptionGroup classes - A utility function (exceptiongroup.catch()) for catching exceptions possibly nested in an exception group - Patches to the TracebackException class that properly formats exception groups (installed on import) - An exception hook that handles formatting of exception groups through TracebackException (installed on import)

If this package is imported on Python 3.11 or later, the built-in implementations of the exception group classes are used instead, TracebackException is not monkey patched and the exception hook won't be installed.

Install

Channel stable v1.1.1-2

This app is curated in HaikuPorts. Install it from there, it is already available in HaikuDepot.

pkgman install exceptiongroup

Download version 1.1.1-2 (any) hpkg

Careful: the file comes from HaikuPorts' own server, but installing it by hand is not the way in. It is pkgman that resolves the dependencies an .hpkg does not carry with it, and a package installed on its own may simply not run. Use the pkgman command above, unless you know exactly why you want the file.

Reviews