First, I'm sorry if I'm asking something dumb, because I'm new to Python...
I was reading http://docs.python.org/3.1/reference/datamodel.html#objects-values-and-types and saw that phrase:
The type() function returns an object’s type (which is an object itself)
Of course, I decided to check this:
>>> def someFunction(x):
... return x * x
...
>>> type(someFunction)
<class 'function'>
>>> type(type)
<class 'type'>
So, looks like functions have the function
type, but then why type
function has a different type if it is a function? Or the docs are lying and it's not really a function?