how to count lines in a file ?

Steve Holden sholden at holdenweb.com
Sat Jul 27 00:55:24 EDT 2002


"Skip Montanaro" <skip at pobox.com> wrote in message
news:15682.10208.325890.497677 at 12-248-11-90.client.attbi.com...
>
>     >> Not quite. Any cycle containing an object with a __del__ method
will
>     >> be skipped and left to languish in memory-limbo forever.
>     >>
>     Steve> You mean the garbage collector doesn't *collect* data that
>     Steve> appears in cycles? That's not my understanding (which doesn't
>     Steve> nevessarily mean it's dissonant with reality).
>
> No, just those cycles where at least one of the involved objects contains
a
> __del__ method.  In those situations, it's the programmer's responsibility
> to break the cycle.


Thanks for the clarification. I hadn't understood that the existence of a
__del__() would modify the GC's actions.

regards
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------








More information about the Python-list mailing list