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 2008-07-16 23:36 by georg.brandl. 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
2008-07-16 23:36:20georg.brandlsetstatus: open -> closed
resolution: accepted
messages: + msg69857
2008-07-16 23:10:44segfaulthuntercreate