Re: looking for way to include many times some .py code fromanotherpython code

2005-03-08 Thread Steven Bethard
Martin MOKREJŠ wrote: Basically, doing in a class method def(self, a, b, c): self.a = a self.b = b self.c = c sounds stupid. With next instance I'll loose a, b, c, so I have to save then to a variable, "self." prefix is generally proposed way. But it's not surprising a gets to self.a, righ

Re: looking for way to include many times some .py code fromanotherpython code

2005-03-08 Thread Martin MOKREJŠ
Scott David Daniels wrote: Martin MOKREJŠ wrote: If I put them into a module, it get's executed only once unless I > do reload. And I'd have to use: "from some import *", because mainly I'm interrested in assigning to self: self.x = "blah" self.y = "uhm" OK, somewhere in here I think I get

Re: looking for way to include many times some .py code fromanotherpython code

2005-03-08 Thread Scott David Daniels
Martin MOKREJŠ wrote: If I put them into a module, it get's executed only once unless I > do reload. And I'd have to use: "from some import *", because mainly I'm interrested in assigning to self: self.x = "blah" self.y = "uhm" OK, somewhere in here I think I get what you want to do. Essent

Re: looking for way to include many times some .py code fromanotherpython code

2005-03-08 Thread Kent Johnson
Martin MOKREJŠ wrote: Oh, I've picked up not the best example. I wanted to set the variables not under __init__, but under some other method. So this is actually what I really wanted. class klass(somefile2.base): def __init__(): pass def set_them(self, a, b, c, d): somefile2.base.__