[docs] [issue10461] Use with statement throughout the docs

Éric Araujo report at bugs.python.org
Fri Nov 19 17:05:04 CET 2010


New submission from Éric Araujo <merwok at netwok.org>:

The docs contain numerous examples that would trigger resource warnings under 3.2 (for example “open(...).read()”).  They should be changed to use (and thus promote) the with statement.

Not adding the “easy” keyword, since grepping for those things is not easy.

Not sure we’ll backport that to 3.1 and 2.7.

----------
assignee: docs at python
components: Documentation
messages: 121545
nosy: docs at python, eric.araujo
priority: normal
severity: normal
stage: needs patch
status: open
title: Use with statement throughout the docs
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10461>
_______________________________________


More information about the docs mailing list