circular references?

Roy Smith roy at popmail.med.nyu.edu
Fri Dec 17 21:32:53 EST 1999


Let's say I've got:

class a:
   pass

class b:
   def __init__ (self, x):
      self.x = x

and then I do:

foo = a()
foo.b = b(foo)

I've now got two objects that contain references to each other.  Is this 
bad?



More information about the Python-list mailing list