bpo-45272: os.path should not be a frozen module by FFY00 · Pull Request #29329 · python/cpython

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some different frozen importer type might be added, and this code might break.

We can deal with it if that ever happens. The set of conditions here is so specific, yet highly unlikely. Plus, if the check here somehow breaks in the future, the problem should be fairly obvious. However, I expect it wouldn't ever be a problem.

(Regardless, the point is moot now as I'm pretty sure we can drop the importlib change.)