Class Help

Fredrik Lundh fredrik at pythonware.com
Sun Oct 2 05:25:59 EDT 2005


Ivan Shevanski wrote:

> To continue with my previous problems, now I'm trying out classes.  But I
> have a problem (which I bet is easily solveable) that I really don't get.
> The numerous tutorials I've looked at just confsed me.For intance:
>
> >>>class Xyz:
> ...     def y(self):
> ...             q = 2
> ...
> >>>Xyz.y()

what tutorial told you to write this last line?

</F>






More information about the Python-list mailing list