Subclassing is only half the story.
The call operator
( | |
Python
syntax creates new objects for some built-in types. The square
brackets create an instance of |
After the above exercise, our slate looks quite full.
Note that by just subclassing <type 'object'>, the type
C automatically is an instance of <type 'type'>. This
can be verified by checking C.__class__. Why this
happens is explained in the next section.
cobj = C()
mylist = [1,2,3]
