Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 29, 2024

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

  • The Python implementation now raises exception for the extension code
    with false boolean value.
  • Simplify the C code. RuntimeError is now raised in explicit checks.
  • Add many tests.
    (cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…123434)

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

* The Python implementation now raises exception for the extension code
  with false boolean value.
* Simplify the C code. RuntimeError is now raised in explicit checks.
* Add many tests.
(cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@ambv ambv merged commit 58e01a1 into python:3.12 Sep 6, 2024
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