equal
deleted
inserted
replaced
193 |
193 |
194 |
194 |
195 def list_stdlib_modules(): |
195 def list_stdlib_modules(): |
196 """List the modules present in the stdlib. |
196 """List the modules present in the stdlib. |
197 |
197 |
198 >>> py3 = sys.version_info[0] >= 3 |
|
199 >>> mods = set(list_stdlib_modules()) |
198 >>> mods = set(list_stdlib_modules()) |
200 >>> 'BaseHTTPServer' in mods or py3 |
199 >>> 'http' in mods |
201 True |
200 True |
202 |
201 |
203 os.path isn't really a module, so it's missing: |
202 os.path isn't really a module, so it's missing: |
204 |
203 |
205 >>> 'os.path' in mods |
204 >>> 'os.path' in mods |
212 True |
211 True |
213 |
212 |
214 >>> 'collections' in mods |
213 >>> 'collections' in mods |
215 True |
214 True |
216 |
215 |
217 >>> 'cStringIO' in mods or py3 |
216 >>> 'array' in mods |
218 True |
217 True |
219 |
218 |
220 >>> 'cffi' in mods |
219 >>> 'cffi' in mods |
221 True |
220 True |
222 """ |
221 """ |