[Tutor] Closing handles (was valueOf() equivalent)
Darrell Brogdon
darrell@brogdon.net
Fri, 22 Dec 2000 10:38:57 -0500
D-Man wrote:
> In any case it's still good practice to explicitly close all file handles and
> network connections before exiting.
Ok so, uh, how do I close a connection that has been opened with
'os.popen()'?
I was reasonably confident that Python would close the connection for me
but I always try to close anything I open in my code just to be sure.
--
Darrell Brogdon
http://darrell.brogdon.net