scoping problems
Narayan Desai
desai at mcs.anl.gov
Fri Jul 27 15:30:57 EDT 2001
I made a mistake when I was describing the problem. Here is the real
problem; I had mis-formulated the minimal subset needed to cause this
behavior. The real subset is:
class baseclass():
def __init__(self):
self.__myfunc__()
class a(baseclass):
__myfunc__=b
class b(baseclass):
__myfunc__=a
Does anyone know how to get this to work?
-nld
>>>>> "Me" == Narayan Desai <desai at mcs.anl.gov> writes:
Me> How can i define the following code: def a():
Me> b()
Me> def b():
Me> a()
Me> (ignoring for a moment that this would never terminate) How do you
Me> get the namespaces right?
Me> I would solve this with function prototypes in C, but it isn't
Me> clear to me how to do this in python. thanks...
Me> -nld
More information about the Python-list
mailing list