how to count lines in a file ?

Steve Holden sholden at holdenweb.com
Sat Jul 27 12:41:24 EDT 2002


[Andreas explains why garbage collection  in the presence of __del__()
methods is a bad idea ...]

> Basically, because the system state during collection is in a flux, the
> possible failure modes for finalization functions multiple quite fast.
>
> Now there uses for finalization with GC, but they usually do not apply
> to python (because python do not contain things like unprotected
> references, etc., and the whole interfacing with non-gc libraries is
> done in C).
> > completely sure I understand what you are saying. As the Reverend Sydney
> > Smith observed upon seeing two women shouting at each other from
opposite
> > windows: "I fear they will never agree, for they are arguing from
different
> > premises".

Thanks. I thought there had to be something I was missing.

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








More information about the Python-list mailing list