refering to base classes

glenn glenn at tangelosoftware.net
Wed Aug 30 06:43:56 EDT 2006


>
> Shouldn't that be
>
> beagle = animal.dog()
>
> to create an instance?
>
> We've all done it ...
lol - actually Im confused about this - there seem to be cases where
instantiaing with:
instance=module.classname()
gives me an error, but
instance=module.classname
doesnt - so I got into that habit, except for where I had a constructor
with parameters - except now Im feeling foolish because I cant
replicate the error - which suggests I didnt understand the error
message properly in the first place... arrgh
I guess thats just part of the process of gaining a new language.

glenn




More information about the Python-list mailing list