[Tutor] Closing an urllib.urlopen

Timothy M. Brauch tbrauch@mindless.com
Tue, 02 Jan 2001 16:37:50 -0500


I've opened a web page in the following way:

top_ten_html=urllib.urlopen('http://www.cbs.com/latenight/lateshow/')

Do I have to close this?  I know with files you don't necessarily need
to close any files you open, but it is good to do so.  Is it the same
way with urlopen?

Tim