ldo at geek-central.gen.new_zealand
Sat Oct 30 04:22:43 CEST 2010
In message <ia42sr$e73$1 at nntp.amis.hr>, Nikola Skoric wrote:
> I have a file full of lines which I parse into Line objects. I also
> have two subclasses of Line, namely Individual and Family. Constructor
> of both subclasses needs all Line objects in the file to be
> constructed, so I cannot construct subclass objects in the first pass.
Circularity of reference which does not fit into the object-oriented
insistence on a hierarchy. So the only way around it is to introduce more
layers of complications which get you further way from solving the original
Tell me again, what relevance OO has to the real world?
More information about the Python-list