feat: Support for Python 3.12, 3.13 and 3.14 by Periecle · Pull Request #275 · vmprof/vmprof-python · GitHub
Skip to content

feat: Support for Python 3.12, 3.13 and 3.14 - #275

Merged
mattip merged 4 commits into
vmprof:masterfrom
Periecle:feature/support-python-12-13-14
Sep 14, 2026
Merged

feat: Support for Python 3.12, 3.13 and 3.14#275
mattip merged 4 commits into
vmprof:masterfrom
Periecle:feature/support-python-12-13-14

Conversation

@Periecle

@Periecle Periecle commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Background

The current vmprof release restricts installation to Python versions below 3.12. This limitation prevents adoption on modern Python environments. The submitted PR addresses the necessary CPython internal API changes to restore compatibility.

Technical Changes

  • Python 3.12: populate_frames.c inclusion; deprecated readfp() API
  • Python 3.13: tstate->cframe removal; frame->f_code renamed to f_executable; Py_BUILD_CORE header guards; deprecated PyImport_ImportModuleNoBlock
  • Python 3.14: Frame internals relocated to pycore_interpframe.h

Validation

  • Full test suite (58 tests) passes on Python 3.11, 3.12, 3.13, and 3.14
  • Profiler correctly captures call stacks across all versions
  • CI configuration updated to include new Python versions
  • I have manually tested on MacOS(ARM), Linux(x86_64) and Windows(x86_64)

@Periecle
Periecle force-pushed the feature/support-python-12-13-14 branch 2 times, most recently from bfb603c to d1b0082 Compare November 29, 2025 10:14
@rlamy

rlamy commented Dec 1, 2025

Copy link
Copy Markdown
Member

@mattip

mattip commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Closing/reopening to restart CI

@mattip mattip closed this Sep 11, 2026
@mattip mattip reopened this Sep 11, 2026
@mattip

mattip commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@mattip
mattip force-pushed the feature/support-python-12-13-14 branch from 31113d9 to ff58fe5 Compare September 14, 2026 08:08
@mattip
mattip merged commit 8d3b3be into vmprof:master Sep 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants