Is it legal for a constructor function to call itself recursively? I.e.:
class foo:
def __init__(self, x):
if (whatever):
self.bar = foo(y)
--
Roy Smith <roy@popmail.med.nyu.edu>
New York University School of Medicine
class foo:
def __init__(self, x):
if (whatever):
self.bar = foo(y)
--
Roy Smith <roy@popmail.med.nyu.edu>
New York University School of Medicine