This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | mjpieters |
|---|---|
| Recipients | docs@python, mjpieters |
| Date | 2014年10月28日.22:40:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1414536052.52.0.0865505363528.issue22755@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
urllib.request.urlopen() now always produces a context manager (either a HTTPResponse or addinfourl object). The example for contextlib.closing still uses urllib.request.urlopen as an example for the context manager wrapper, see https://docs.python.org/3/library/contextlib.html#contextlib.closing This is confusing users that now expect the object not to be a context manager, see: http://stackoverflow.com/questions/26619404/with-and-closing-of-files-in-python Can a different example be chosen? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014年10月28日 22:40:52 | mjpieters | set | recipients: + mjpieters, docs@python |
| 2014年10月28日 22:40:52 | mjpieters | set | messageid: <1414536052.52.0.0865505363528.issue22755@psf.upfronthosting.co.za> |
| 2014年10月28日 22:40:52 | mjpieters | link | issue22755 messages |
| 2014年10月28日 22:40:52 | mjpieters | create | |