On Sep 18, 3:08 pm, rantingrick <rantingr...@gmail.com> wrote: > ok here is some code. this will cause an infinite recursion. > > class A(): > def __init__(self, *args): > self.nestedA = A(*args) #NO GOOD!
How about: class A(object): def __init__(self, first=True, *args): if first: self.nestedA = A(first=False, *args) That's about the only way I can see you easily avoiding the recursiveness. -- http://mail.python.org/mailman/listinfo/python-list