Re: newbie class question

2005-11-23 Thread Mike Meyer
[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

Re: newbie class question

2005-11-23 Thread Diez B. Roggisch
>>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

Re: newbie class question

2005-11-23 Thread vida00
[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

newbie class question

2005-11-23 Thread vida00
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): ...