OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

py3c-1.1p0

python 2/3 compatibility layer for C extensions

Back to search · Project homepage

Description

py3c helps you port C extensions to Python 3. It provides a detailed guide, and a set of macros to make porting easy and reduce boilerplate. Design principles - Reduce chances of accidental subtle errors - Minimize boilerplate - Prefer the Python 3 way of doing things - Minimize semantic changes under Python 2 Versions Projects using py3c will be compatible with CPython 2.6, 2.7, and 3.3+.

Package information

Ports path
devel/py3c
Package architecture
amd64
Maintainer
Stefan Sperling <stsp@openbsd.org>
Categories
devel, lang/python
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Test

Used by (6 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON