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,
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):
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
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"
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