instances
Fredrik Lundh
fredrik at pythonware.com
Fri Jul 14 14:14:31 EDT 2006
Quenton Bonds wrote:
> I am trying to understand the abilities and limitation of creating an
> instance. First I will give you my understanding then please steer me
> in the right direction.
>
> Abiities
> 1. The two ways to create an instance is def method(self) &
> __int__(self, other, instances,...)
> 2. By creating an instance of a method; the functions of that method
> can be used through out the
> program in a fashion such as self.methodofprogram(parameters)
> Limitations
> 3. One cannot create an instance of a class.
> 4. An instance can only perform functions that are provided from the
> method it was instanced from.
>
> 5. Is there any other key information I am missing.
most of it, really. or maybe you've just mixed all the words up.
I suggest reading the "gentle introduction to classes" found here:
http://pytut.infogami.com/node11-baseline.html
(this is a proposed addition to the python tutorial; comments are welcome)
</F>
More information about the Python-list
mailing list