Simple questions on use of objects (probably faq)

Steven D'Aprano steve at REMOVETHIScyber.com.au
Thu Mar 9 23:04:09 CET 2006


On Thu, 09 Mar 2006 13:44:25 +0100, bruno at modulix wrote:

> Steven D'Aprano wrote:
> (snip)
> 
>> I say "think you want" because I don't know what problem you are trying to
>> solve with this messy, self-referential, piece of code.
> 
> This messy piece of code is mine, thanks !-)

You're welcome :-)

> And it's not "self-referential" - it introduces a references cycle
> (class object -> instances -> class object), which may or may not be a
> problem.

Every instance knows about a list of every other instance, including
itself. That makes it self-referential in my book.



-- 
Steven.




More information about the Python-list mailing list