PEP 8 exegetics: conditional imports?
Peter Otten
__peter__ at web.de
Fri Aug 7 16:33:08 EDT 2009
alex23 wrote:
> This is something I was _utterly_ unaware of. Is there a list of what
> modules are built-in readily available?
>> sys.builtin_module_names
('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections',
'_functools', '_locale', '_random', '_socket', '_sre', '_struct',
'_symtable', '_warnings', '_weakref', 'array', 'binascii', 'cPickle',
'cStringIO', 'errno', 'exceptions', 'fcntl', 'gc', 'grp', 'imp',
'itertools', 'marshal', 'math', 'operator', 'posix', 'pwd', 'select',
'signal', 'spwd', 'strop', 'sys', 'syslog', 'thread', 'time', 'unicodedata',
'xxsubtype', 'zipimport', 'zlib')
Peter
More information about the Python-list
mailing list