[issue45379] Improve errors related to frozen modules.

2021-10-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c2d0ba722a7b3839685af968cf0c304a24cdf525 by Filipe Laíns in branch 'main': bpo-45379: clarify FROZEN_EXCLUDED and FROZEN_INVALID documentation (GH-29189) https://github.com/python/cpython/commit/c2d0ba722a7b3839685af968cf0c304a24cdf525

[issue45379] Improve errors related to frozen modules.

2021-10-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 233841ab782953510ad308dc6173072a6cc6a1cd by Filipe Laíns in branch 'main': bpo-45379: add custom error string for FROZEN_DISABLED (GH-29190) https://github.com/python/cpython/commit/233841ab782953510ad308dc6173072a6cc6a1cd -- nosy:

[issue45379] Improve errors related to frozen modules.

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27461 pull_request: https://github.com/python/cpython/pull/29190 ___ Python tracker ___

[issue45379] Improve errors related to frozen modules.

2021-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27460 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29189 ___ Python tracker ___

[issue45379] Improve errors related to frozen modules.

2021-10-23 Thread Filipe Laíns
Filipe Laíns added the comment: FROZEN_EXCLUDED is set when frozen modules have no code associated with them, and the _freeze_module tool doesn't seem to be able to produce such output. We could remove it and replace it with an assert, but that does not give us much benefit, so we should

[issue45379] Improve errors related to frozen modules.

2021-10-22 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +27454 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29180 ___ Python tracker

[issue45379] Improve errors related to frozen modules.

2021-10-22 Thread Filipe Laíns
Filipe Laíns 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

[issue45379] Improve errors related to frozen modules.

2021-10-15 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45379] Improve errors related to frozen modules.

2021-10-05 Thread Eric Snow
New submission from Eric Snow : In Python/import.c there are various situations in which an error state related to frozen modules might result and even lead to an exception. In gh-28633 we consolidated these cases into a new "frozen_status" enum and added "set_frozen_error()" to set a