Recursive constructors?
Bruce Dodson
bruce_dodson at bigfoot.com
Fri Jul 30 14:16:44 EDT 1999
More information about the Python-list mailing list
Fri Jul 30 14:16:44 EDT 1999
- Previous message (by thread): Recursive constructors?
- Next message (by thread): Is bsddb.pyd thread safe in 1.5.2 (win95)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It is legal, but you had better make sure that (whatever) becomes false somewhere along the line, as a side-effect of foo::__init__. Otherwise, I pity the foo at the bottom, who has to carry an entire heap full of bars. (okay,okay) >class foo: > def __init__(self, x): > if (whatever): > self.bar = foo(y)
- Previous message (by thread): Recursive constructors?
- Next message (by thread): Is bsddb.pyd thread safe in 1.5.2 (win95)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list