devel/py-exceptiongroup 1.2.2 DragonFly
Backport of PEP 654 (exception groups)
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 30.9 KiB, 147.8 KiB installed
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.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-exceptiongroup | 1.2.2 |
| FreeBSD | devel/py-exceptiongroup | 1.3.1 |
| OpenBSD | devel/py-exceptiongroup | 1.3.1p0 |
| NetBSD | devel/py-exceptiongroup | 1.3.1 |
| MidnightBSD | devel/py-exceptiongroup | 1.2.1_1 |
| HardenedBSD | devel/py-exceptiongroup | 1.3.1 |
| GhostBSD | devel/py-exceptiongroup | 1.3.1 |
Install
Binary package:
pkg install py311-exceptiongroup
From DPorts:
cd /usr/dports/devel/py-exceptiongroup && make install clean