Skip to content

Conversation

@rahul-roy-glean
Copy link

@rahul-roy-glean rahul-roy-glean commented Nov 5, 2025

  • Python 3.12 & 3.13 support
    • Updated _PyInterpreterFrame handling for new internal field names and layout:
    • 3.12: f_func → f_funcobj, reordered fields
    • 3.13: f_code → f_executable, prev_instr → instr_ptr, flattened tstate->current_frame
    • Maintains backward compatibility (3.7–3.11)
    • Added classifiers in setup.py and updated README.md
  • Race condition fix
    • Added defensive NULL checks for tstate, cframe, and current_frame
    • Replaced all assert()s with runtime checks
    • Skips invalid/partially initialized frames safely
    • Fully async-signal-safe (no allocations or locks in handler)

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.

1 participant