FreeBSD.software
Home/devel/py311-exceptiongroup

py311-exceptiongroup

1.3.1devel

Backport of PEP 654 (exception groups)

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.

$pkg install py311-exceptiongroup
github.com/agronholm/exceptiongroup
Origin
devel/py-exceptiongroup
Size
150KiB
License
MIT
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
1 packages

Dependencies (2)

Required By (1)