Was just thinking about Python's dict
"function" and starting to realize that dict
isn't really a function at all. For example, if we do dir(dict)
, we get all sorts of methods that aren't include in the usual namespace of an user defined function. Extending that thought, its similar to dir(list)
and dir(len)
. They aren't function, but really type
s. But then I'm confused about the documentation page, http://docs.python.org/2/library/functions.html, which clearly says functions. (I guess it should really just says builtin callables)
So what gives? (Starting to seem that making the distinction of classes and functions is trivial)