Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/ipython/ipython
/ forbid
Method
forbid
IPython/external/qt_loaders.py:60–62 ·
view source on GitHub ↗
(self, module_name)
Source
from the content-addressed store, hash-verified
58
self.__forbidden = set()
59
60
def
forbid(self, module_name):
61
sys.modules.pop(module_name, None)
62
self.__forbidden.add(module_name)
63
64
def
find_spec(self, fullname, path, target=None):
65
if
path:
Callers
2
commit_api
Function · 0.80
test_import_denier
Function · 0.80
Calls
2
pop
Method · 0.80
add
Method · 0.45
Tested by
1
test_import_denier
Function · 0.64