◐ Shell
clean mode source ↗

gh-69605: Add math.integer to PyREPL module completer hardcoded list by loic-simon · Pull Request #144811 · python/cpython

Add the new math.integer submodule to the hardcoded list of stdlib modules that cannot be detected by pkgutil (implemented in #138268).

See this DPO post for more context about why this is necessary in the first place. I also talk about a new test to ensure this list doesn't get more out of sync, but it builds on the work I did in #140871 (to ensure we don't import a "dangerous" module), so I'll propose it after that MR is merged.

I don't think this change needs a specific issue, but happy to do create one if needed!