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: With keyword not mentioned in Input Output tutorial
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, segfaulthunter
Priority: normal Keywords: patch

Created on 2008-07-16 23:10 by segfaulthunter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
with_tutorial.patch segfaulthunter, 2008-07-16 23:10 This familiarises the reader with the use of the with keyword with files.
Messages (2)
msg69854 - (view) Author: Florian Mayer (segfaulthunter) Date: 2008-07-16 23:10
I think that the Python 3.0 Tutorial should show the reader that the
with keyword is an excellent way of reading data from a file and closing
it afterwards, even if exceptions occur.
msg69857 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-07-16 23:36
Thanks, committed a similar patch in r65048.
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47638
2008-07-16 23:36:20georg.brandlsetstatus: open -> closed
resolution: accepted
messages: + msg69857
2008-07-16 23:10:44segfaulthuntercreate