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.

classification
Title: csv documentation should not use open() without close()
Type: Stage: resolved
Components: Documentation Versions: Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Use with statement throughout the docs
View: 10461
Assigned To: docs@python Nosy List: docs@python, eric.araujo, eric.smith
Priority: normal Keywords: easy

Created on 2011-02-04 23:47 by eric.smith, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg127954 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2011-02-04 23:47
Many places open() is shown as a parameter to a csv method, but close() can't be called. This is not a practice we should be advocating. Better would be to show a 'with' statement, or at least a note explaining this isn't an ideal usage.
msg127955 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-02-04 23:50
Agreed.  I have to take some time to update my patch on the other bug.  Hope you won’t mind me closing this one as duplicate.
History
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55334
2011-02-04 23:50:35eric.araujosetstatus: open -> closed

superseder: Use with statement throughout the docs

nosy: + eric.araujo
messages: + msg127955
resolution: duplicate
stage: resolved
2011-02-04 23:47:21eric.smithcreate