Least used builtins?

Sandy Norton sandskyfly at hotmail.com
Fri Jul 4 10:20:11 EDT 2003


Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> len(dir(__builtins__))
86
>>>

Python 2.3b2+ (#43, Jul  4 2003, 04:54:22) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> len(dir(__builtins__))
125
>>>

Apparently these were added between py152 and py23:

['help', 'UnicodeTranslateError', 'StopIteration', 'SyntaxWarning',
'unicode', 'enumerate', 'unichr', 'basestring', 'DeprecationWarning',
'UnicodeError', 'copyright', 'sum', 'ReferenceError',
'OverflowWarning',
'dict', 'bool', 'True', 'FutureWarning', 'NotImplemented', 'file',
'zip',
'object', 'TabError', 'credits', 'UnicodeEncodeError', 
'UnicodeDecodeError', 'super', 'IndentationError', 'False',
'RuntimeWarning', 'license', 'classmethod', 'UserWarning', 
'PendingDeprecationWarning', 'iter', 'UnboundLocalError', 
'Warning', 'staticmethod', 'property','WindowsError']


I know there some plans to reduce the number of builtins in some
future version of python (Python 3.0?): So which builtins do you least
use?

Pesonally, I don't think I've ever used the following: intern, buffer,
coerce

cheers,

Sandy




More information about the Python-list mailing list