Re: defining class functions

2009-01-19 Thread Astan Chee
Actually, yes, I just realized a better way of doing this without state change based on the requirement. Thanks for the info anyway Nehemiah Dacres wrote: wouldn't you use a state change? Use a variable to indicate which function you want the first class to do On Mon, Jan 19, 2009 at 6:31 PM,

Re: defining class functions

2009-01-19 Thread James Stroud
Astan Chee wrote: Hi, I have two classes in python that are in two different files/python scripts. Class A uses Class B like this: class B(object): def function1(self,something): pass def function2(self,something): print "hello one" print something class A(object):

Re: defining class functions

2009-01-19 Thread Nehemiah Dacres
wouldn't you use a state change? Use a variable to indicate which function you want the first class to do On Mon, Jan 19, 2009 at 6:31 PM, James Mills wrote: > On Tue, Jan 20, 2009 at 10:08 AM, Astan Chee wrote: > > Hi, > > I have two classes in python that are in two different files/python > sc

Re: defining class functions

2009-01-19 Thread James Mills
On Tue, Jan 20, 2009 at 10:08 AM, Astan Chee wrote: > Hi, > I have two classes in python that are in two different files/python scripts. > Class A uses Class B like this: > class B(object): > def function1(self,something): > pass > def function2(self,something): > print "hello one"

defining class functions

2009-01-19 Thread Astan Chee
Hi, I have two classes in python that are in two different files/python scripts. Class A uses Class B like this: class B(object): def function1(self,something): pass def function2(self,something): print "hello one" print something class A(object): def __init__(self