This was removed from dir-function and replaced by a bit of logic that folds long lines: >>> dir(__builtins__) ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'D eprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception' , 'False', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError ', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyEr ror', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'None ', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'Pe ndingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning ', 'StandardError', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'Syste mError', 'SystemExit', 'TabError', 'True', 'TypeError', 'UnboundLocalError' , 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTrans lateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'Zero DivisionError', '_', '__debug__', '__doc__', '__import__', '__name__', 'abs ', 'all', 'any', 'apply', 'basestring', 'bool', 'buffer', 'callable', 'chr' , 'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'copyright', 'credi ts', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', ' exit', 'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasat tr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'intern', 'isinstance', ' issubclass', 'iter', 'len', 'license', 'list', 'locals', 'long', 'map', 'ma x', 'min', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'quit', 'rang e', 'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 's etattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple',  'type', 'unichr', 'unicode', 'vars', 'xrange', 'zip'] \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ For fans of C and related languages, here is a quiz. What values are passed to function f in this C-language statement, if i is an integer initially set to 5? f(i, ++i, i--, i=14, i+20); Perhaps the C standard defines the behavior, but Guido van Rossum, inventor of Python, wisely decided that clarity is more important that compactness, and forbade such....