SIGN IN SIGN UP

[3.13] gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426) (#126442)

gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426)

- Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects)
- Respect possible errors of `sys.monitoring.register_callback` call
(cherry picked from commit 75872605aa78dbdfc5c4f025b0f90a7f37ba10c3)

Co-authored-by: sobolevn <mail@sobolevn.me>
M
Miss Islington (bot) committed
ffb44cd08c625dc4eda7eea058e1049d1f630491
Parent: c1e708a
Committed by GitHub <noreply@github.com> on 11/5/2024, 12:48:18 PM