Lines Matching refs:names
1 # This script lists the names of standard library modules
64 def list_python_modules(names):
69 names.add(name)
73 def list_packages(names):
82 names.add(name)
86 def list_setup_extensions(names):
87 cmd = [sys.executable, SETUP_PY, "-q", "build", "--list-module-names"]
91 names |= set(extensions)
95 def list_modules_setup_extensions(names):
115 names.add(name)
120 def list_frozen(names):
129 names.add(name)
132 if name.partition('.')[0] in names:
139 names = set(sys.builtin_module_names) | set(WINDOWS_MODULES) | set(MACOS_MODULES)
140 list_modules_setup_extensions(names)
141 list_setup_extensions(names)
142 list_packages(names)
143 list_python_modules(names)
144 list_frozen(names)
147 for name in list(names):
151 names.discard(name)
153 for name in names:
157 return names
160 def write_modules(fp, names):
166 for name in sorted(names):
178 names = list_modules()
179 write_modules(fp, names)