Python 3.0 - is this true?
Arnaud Delobelle
arnodel at googlemail.com
Sun Nov 9 12:31:40 EST 2008
Roy Smith <roy at panix.com> writes:
> I spend too much time in C++ pleading with the compiler to allow me to do
> what I want. I come to Python to get away from all that type bondage.
>
> As another example, consider a list of items being juggled:
>
> [RubberChicken(), ChainSaw(), Canteloupe()]
>
> I could go through contortions to find some common subclass for these
> items, but the whole *point* is that they're not of the same type. And
> making a list of them is a perfectly reasonable thing to do.
You do realise that all these objects (like any object in Python) are
all instances of the object type, don't you?
--
Arnaud
More information about the Python-list
mailing list