Skip to content

Commit fc69940

Browse files
committed
ch02: standard library modules
1 parent fa4f5a5 commit fc69940

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python3
2+
import importlib.util
3+
import sys
4+
5+
for name in sorted(sys.stdlib_module_names):
6+
if spec := importlib.util.find_spec(name):
7+
print(f"{name:30} {spec.origin}")

0 commit comments

Comments
 (0)