[IronPython] Re: IronPython 0.7.4 released

Michael Spencer mahs at telcopartners.com
Tue May 3 22:22:41 CEST 2005

Daniel Santa Cruz wrote:
> How can I determine which standard functions are currently implemented by 
> IronPython?
> Would:
>>>>import sys
> show me what we have?
> Thanks!
> Daniel

That will show the current namespace.  Perhaps more useful to you is:

 >>> import __builtin__
 >>> dir(__builtin__)
['ArithmeticError', 'AssertionError', 'AttributeError', 'DeprecationWarning', 'E
OFError', 'Ellipsis', 'EnvironmentError', 'Equals', 'Exception', 'False', 'Float
ingPointError', 'FutureWarning', 'GetHashCode', 'GetType', 'IOError', 'ImportErr
or', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupE
rror', 'MakeNew', 'MemoryError', 'NameError', 'None', 'NotImplemented', 'NotImpl
ementedError', 'OSError', 'OverflowError', 'OverflowWarning', 'PendingDeprecatio
nWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError',
'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'T
abError', 'ToString', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeEr
ror', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UserWarnin
g', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivisionError', '__debug__', '
__import__', '__new__', 'abs', 'apply', 'basestring', 'bool', 'buffer', 'callabl
e', 'chr', 'classmethod', 'cmp', 'compile', 'complex', 'delattr', 'dict', 'dir',
  'divmod', 'enumerate', 'eval', 'execfile', 'exit', 'file', 'filter', 'float', '
getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'in
tern', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'long', 'map', 'max',
'min', 'nstr', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'quit', 'range
', 'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'setattr', 'sli
ce', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode'
, 'xrange', 'zip', 'zip2']

Note, that not all the built-in functions behave identically to cpython's yet


More information about the Ironpython-users mailing list