Repository navigation
Avoid reloading builtin types module. - #10318
Conversation
| # bowels of Python and screw up the import machinery after. | ||
| # unlike other imports the `exclude` list aleady in place is not enough. | ||
|
|
||
| if m is types: |
There was a problem hiding this comment.
Bit disturbing that the exclude list doesn't work for this.
I'd like to find a way to exclude all standard library modules from deepreload(), but I don't know of a good way to check if something's in the stdlib.
Maybe the rule should be 'anything that IPython uses' - i.e. anything that's in sys.modules before user code runs. It's possibly tricky to do that now that we don't load deepreload on start.
There isn't. And AFAICT Core python does not see any interest in doing it. We could check early-python-modules that have the specific file I've looked as to where the I honestly think it might be a Bug in CPython itself. But it would be nice to even have a band-aid potentially opening an issue to investigate later. |
Closes #10235