scoping problems

Narayan Desai desai at
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):

class a(baseclass):

class b(baseclass):

Does anyone know how to get this to work?

>>>>> "Me" == Narayan Desai <desai at> 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