[issue45379] Improve errors related to frozen modules.

Filipe Laíns report at bugs.python.org
Fri Oct 22 19:39:10 EDT 2021


Filipe Laíns <lains at riseup.net> added the comment:

I was looking at the code and it seems PyImport_ImportFrozenModuleObject does not set an error on FROZEN_BAD_NAME, it just returns 0, is this intended? If I pass a bogus object, it will just return 0.
This does not seem right.

Currently, FROZEN_BAD_NAME is never passed to set_frozen_error.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45379>
_______________________________________


More information about the Python-bugs-list mailing list