PyType_GetModuleByDef can return NULL without exception set #133166
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-C-API
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
The documentation does not mention that this is possible, but if the object passed in is not a heap type it returns
NULL
without setting an exception:CC @ericsnowcurrently @encukou .
Linked PRs
The text was updated successfully, but these errors were encountered: