nntplib, huge xover object
Mike Meyer
mwm at mired.org
Mon Apr 7 10:53:15 EDT 2003
mwilson at the-wire.com (Mel Wilson) writes:
> In article <x7smsvh7kr.fsf at guru.mired.org>, Mike Meyer <mwm at mired.org> wrote:
> >The garbage collection happening when your function returns is
> >implementation specific. It works that way in CPython, but not
> >Jython. You should always explicitly close files to make sure they get
> >closed - and the output flushed, in this case - when you're done with
> >them.
> That's why I prefer to think of Jython as a different
> language. The idea of a service that can clean up and quit
> when the last client stops using it is just too appealing.
I don't think you have any guarantees that CPython won't change
behavior on you.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list