It's pretty easy to get the list:
IronPython console: IronPython 2.0 (2.0.0.00) on .NET 2.0.50727.1408
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys
>>> sys.builtin_module_names
('__builtin__', 'datetime', 'errno', 'math', 'md5', 're', 'collections',
'select', 'cStringIO', 'nt', 'socket', 'thread', 'binascii', 'time', 'struct',
'_random
', 'exceptions', '_codecs', 'copy_reg', 'cPickle', 'gc', 'marshal', 'operator',
'_sre', 'imp', 'itertools', 'sha', '_weakref', 'array', '_locale')
>>> ^Z
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> ipylist = ('__builtin__', 'datetime', 'errno', 'math', 'md5', 're',
>>> 'collections', 'select', 'cStringIO', 'nt', 'socket', 'thread', 'binascii',
>>> 'time', 'str
uct', '_random', 'exceptions', '_codecs', 'copy_reg', 'cPickle', 'gc',
'marshal', 'operator', '_sre', 'imp', 'itertools', 'sha', '_weakref', 'array',
'_locale')
>>> ipyset = set(ipylist)
>>> cpyset = set(sys.builtin_module_names)
>>> cpyset - ipyset
set(['_bisect', '_codecs_hk', '_sha512', 'audioop', '_multibytecodec',
'parser', '_sha', '_winreg', '__main__', 'msvcrt', '_heapq', '_codecs_jp',
'mmap', '_subp
rocess', '_sha256', '_codecs_tw', '_functools', 'zipimport', '_codecs_iso2022',
'xxsubtype', '_codecs_cn', '_lsprof', '_struct', '_types', 'sys', '_codecs_kr',
'_ast', 'rgbimg', '_csv', 'signal', 'zlib', '_hotshot', '_md5', 'imageop',
'cmath', '_symtable', 'strop'])
>>>
But it unfortunately doesn't include extension modules. From my Py2.5
installation it comes with:
bz2.pyd
pyexpat.pyd
select.pyd
unicodedata.pyd
winsound.pyd
_bsddb.pyd
_ctypes.pyd
_ctypes_test.pyd
_elementtree.pyd
_hashlib.pyd
_msi.pyd
_socket.pyd
_sqlite3.pyd
_ssl.pyd
_testcapi.pyd
_tkinter.pyd
And the only one of these that we currently implement is select. Note this is
on ipy v2.0 but I believe currently v1.1 and v2.0 have the same set of built-in
modules.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kelie
Sent: Wednesday, October 24, 2007 9:54 AM
To: [email protected]
Subject: [IronPython] list of python built-in modules that are NOT supported by
IronPython available?
Hello,
Is there a list of python built-in modules that are NOT supported by
IronPython? I just tried importing sqlite3 module and failed.
Thanks,
--
Kelie
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com