Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74422

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

From <krzysztof.zelechowski@syncron.com>
Newsgroups comp.lang.python
Subject Re: Do I need to call close on the handle returned by urlopen?
Date 2014-07-14 17:08 +0200
Organization Netia S.A.
Message-ID <lq0sqn$tam$1@mx1.internetia.pl> (permalink)
References <lq0sar$r6e$1@mx1.internetia.pl>

Show all headers | View raw


http://bugs.python.org/issue12955

Użytkownik  napisał w wiadomości grup 
dyskusyjnych:lq0sar$r6e$1@mx1.internetia.pl...

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? 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Do I need to call close on the handle returned by urlopen? <krzysztof.zelechowski@syncron.com> - 2014-07-14 16:59 +0200
  Re: Do I need to call close on the handle returned by urlopen? <krzysztof.zelechowski@syncron.com> - 2014-07-14 17:08 +0200
  Re: Do I need to call close on the handle returned by urlopen? Skip Montanaro <skip@pobox.com> - 2014-07-14 10:09 -0500
  Re: Do I need to call close on the handle returned by urlopen? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-14 16:20 +0100

csiph-web