Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 21, 2025

Since PyLong_From Long(PY_MONITORING_DEBUGGER_ID) falls to small_int case and can't return NULL. Added asserts for extra confidence.
#134411 (comment)
(cherry picked from commit cf19b64)

Co-authored-by: Sergey Muraviov [email protected]

…n to be small (pythonGH-134415)

Since `PyLong_From Long(PY_MONITORING_DEBUGGER_ID)` falls to `small_int` case and can't return `NULL`. Added `assert`s for extra confidence.
python#134411 (comment)
(cherry picked from commit cf19b64)

Co-authored-by: Sergey Muraviov <[email protected]>
@sobolevn sobolevn enabled auto-merge (squash) July 21, 2025 09:01
@sobolevn sobolevn merged commit a69472e into python:3.14 Jul 21, 2025
45 checks passed
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…is known to be small (pythonGH-134415) (python#136910)

pythongh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (pythonGH-134415)

Since `PyLong_From Long(PY_MONITORING_DEBUGGER_ID)` falls to `small_int` case and can't return `NULL`. Added `assert`s for extra confidence.
python#134411 (comment)
(cherry picked from commit cf19b64)

Co-authored-by: Sergey Muraviov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants