[Forwarding to tutor.
Asrarahmed, please learn to use the "Reply to All" feature on your email
client.]
-- Forwarded message --
Date: Sun, 12 Nov 2006 11:03:42 +
From: Asrarahmed Kadri <[EMAIL PROTECTED]>
To: Danny Yoo <[EMAIL PROTECTED]>
Subject: Re: [Tutor] church numerals
Hi,
Is it possible to a single that contains two classes:
Myclass.py file contains:
Class one(object):
def needsomething(self):
Class two (object):
def dosomething(self):
I want Class one's methods to access Class two methods?
Class one(object):
def needsomething(self):
return dosom
"johnf" <[EMAIL PROTECTED]> wrote
> Myclass.py file contains:
>
> Class one(object):
> def needsomething(self):
> Class two (object):
> def dosomething(self):
>
> I want Class one's methods to access Class two methods?
Thats pretty wierd and would suggest a problem in your class
design. Ca
> From: Asrarahmed Kadri <[EMAIL PROTECTED]>
>> #
> def iszero(n):
>> ... def s(x):
>> ... return False
>> ... return n(s, True)
>
>
> Where is n() defined ...?
n is a parameter of the function.
Thus to call iszero you need to pass in another fu