[EMAIL PROTECTED] writes:
> Sorry folks, this is what I meant:
>
class heh(object):
> ... def __init__(self):
> ... self.foo='hello'
> ... def change(self):
> ... self.foo+=' world'
> ... def show(self):
> ... return self.foo
> ...
> ... class hih(object
>>What I am trying to accomplish should be pretty self explanatory when
>>looking at the following:
It seems to me that what you are after is a nested or inner class like
in JAVA. You can't do that in the same way as in JAVA, as nested classes
in python don't know about their surrounding class/c
[EMAIL PROTECTED] wrote:
> Hi,
> I scouted the ng for someone w/ a similar problem and couldn't find
> one, so I might be thinking about this probable non-issue in a wrong
> way.
>
> What I am trying to accomplish should be pretty self explanatory when
> looking at the following:
>
> >>> class heh
Hi,
I scouted the ng for someone w/ a similar problem and couldn't find
one, so I might be thinking about this probable non-issue in a wrong
way.
What I am trying to accomplish should be pretty self explanatory when
looking at the following:
>>> class heh(object):
... def __init__(self):
...