This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients barry, brett.cannon, eric.snow
Date 2021-10-05.15:51:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633449120.03.0.98563217148.issue45379@roundup.psfhosted.org>
In-reply-to
Content
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 consistent exception based on a status.

There are several deficiencies to address at this point:

* the conditions for the statuses are unclear [1][2]
* the error messages could be more helpful [3]
* maybe use a different error message for FROZEN_BAD_NAME (and perhaps FROZEN_DISABLED), rather than combining with FROZEN_NOT_FOUND 


[1] https://github.com/python/cpython/pull/28633#discussion_r720503665
[2] https://github.com/python/cpython/pull/28633#discussion_r720504275
[3] https://github.com/python/cpython/pull/28633#discussion_r720987412
History
Date User Action Args
2021-10-05 15:52:00eric.snowsetrecipients: + eric.snow, barry, brett.cannon
2021-10-05 15:52:00eric.snowsetmessageid: <1633449120.03.0.98563217148.issue45379@roundup.psfhosted.org>
2021-10-05 15:51:59eric.snowlinkissue45379 messages
2021-10-05 15:51:59eric.snowcreate