Do I need to call close on the handle returned by urlopen?

krzysztof.zelechowski at syncron.com krzysztof.zelechowski at syncron.com
Mon Jul 14 16:59:59 CEST 2014


The tutorial says that I should use "with open" to close the file handle
properly.  The reference documentation for urlopen mentions that the handle
returned is like a file handle but the code samples below do not bother to
close the handle at all.  Isn’t it inconsistent? 




More information about the Python-list mailing list