BSD Ports

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

SystemPortVersion
DragonFlydevel/py-exceptiongroup1.2.2
FreeBSDdevel/py-exceptiongroup1.3.1
OpenBSDdevel/py-exceptiongroup1.3.1p0
NetBSDdevel/py-exceptiongroup1.3.1
MidnightBSDdevel/py-exceptiongroup1.2.1_1
HardenedBSDdevel/py-exceptiongroup1.3.1
GhostBSDdevel/py-exceptiongroup1.3.1

Install

Binary package:

pkg install py311-exceptiongroup

From DPorts:

cd /usr/dports/devel/py-exceptiongroup && make install clean

Dependencies

Run dependencies 1
Required by 1