Skip to content

Certify PyPy 3.12 compatibility across OSError reduction and array('Q') grids #32

Open

Description

@tony

Summary

libvt 0.1.0 targets CPython >= 3.12 (3.12–3.15). Full certification on PyPy 3.12 (v8.0.1+) — covering TerminalTimeoutError C/RPython W_EnvironmentError OSError.__new__ + OSError.__init__ pickling/copying across slotted subclasses, array('Q') / memoryview fast paths, and moving-GC assumptions — is deferred to 0.2.0 (split out from #13).

Motivation

CPython's Objects/exceptions.c (OSError_new) and PyPy's RPython W_EnvironmentError differ in how OSError.__new__ and OSError.__init__ populate errno, strerror, args, __notes__, and subclass __slots__. Certifying PyPy 3.12 in CI verifies both functional parity and pure-Python JIT throughput on _Row and Parser.

Proposal

Invariants

The invariants below are load-bearing; everything under Intent is open.

  • libvt keeps zero C extensions and zero runtime dependencies (dependencies = []), remaining importable and functional on pure-Python runtimes implementing Python >= 3.12.
  • All 6 TerminalTimeoutError serialization shapes (base instance, dict subclass, __slots__ subclass, custom-signature subclass, errno subclass, and unaliased copy.copy / copy.deepcopy / pickle protocols 0..5 __notes__) pass on PyPy 3.12 before PyPy is advertised as officially certified.

Intent (non-binding)

  • Target 0.2.0: add an informational (continue-on-error: true initially, promoted once green) pypy-3.12 job in .github/workflows/tests.yml and run scripts/bench_vt.py under PyPy JIT warmup.

Not doing

  • Blocking libvt 0.1.0a0 on PyPy 3.12 runner availability.

References

Activity

  1. added
    enhancement
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions