We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a33da commit ce124b1Copy full SHA for ce124b1
1 file changed
Lib/_pyrepl/_module_completer.py
@@ -217,11 +217,13 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
217
"""Global module cache"""
218
if not self._global_cache or self._curr_sys_path != sys.path:
219
self._curr_sys_path = sys.path[:]
220
- print('getting packages') # TEMPORARY -- debugging tests on windows
+ print('getting packages/') # TEMPORARY -- debugging tests on windows
221
self._global_cache = list(pkgutil.iter_modules())
222
# === BEGIN TEMPORARY -- debugging tests on windows ===
223
+ print(f"\n\n{self._global_cache=}\n\n")
224
mymod = next((p for p in self._global_cache if p.name == "mymodule"), None)
225
if mymod:
226
+ print("0a", mymod)
227
spec = mymod.module_finder.find_spec(mymod.name, None)
228
if spec:
229
print("1")
0 commit comments