Jeff McNeil <j...@jmcneil.net> added the comment:

Isn't that snippet (contextlib.closing(...)) passing the result of 
urllib.urlopen to closing? The urlopen call is a factory function of sorts, so 
there's really no context to manage on its part?  Maybe it's just a matter of 
making that clear?

If you can share what you've got in mind, I'd love to give it a go. The urllib 
stuff I've done thus far has been a great way to get my feet wet!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12365>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to