MCPcopy Create free account
hub / github.com/twisted/twisted / iterModules

Method iterModules

src/twisted/python/modules.py:746–751  ·  view source on GitHub ↗

Yield all top-level modules on my sysPath.

(self)

Source from the content-addressed store, hash-verified

744 return f"PythonPath({self.sysPath!r},{self.moduleDict!r})"
745
746 def iterModules(self):
747 """
748 Yield all top-level modules on my sysPath.
749 """
750 for entry in self.iterEntries():
751 yield from entry.iterModules()
752
753 def walkModules(self, importPackages=False):
754 """

Callers 7

__getitem__Method · 0.95
walkModulesMethod · 0.95
getCacheFunction · 0.45
iterModulesFunction · 0.45
test_onlyTopModulesMethod · 0.45
_listModulesMethod · 0.45
loadPackageMethod · 0.45

Calls 1

iterEntriesMethod · 0.95

Tested by 2

test_onlyTopModulesMethod · 0.36
_listModulesMethod · 0.36