commit | 71ce03df9c643faa94fbdf73bbb4e99a9a62cbdc | [log] [tgz] |
---|---|---|
author | Colin Watson <cjwatson@ubuntu.com> | Wed Apr 17 13:18:37 2019 +0100 |
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | Wed Apr 17 08:18:37 2019 -0400 |
tree | 75e213dd6bd9d03d682bdbd7ee692d60864deed3 | |
parent | 36c41bc2017921321dbb19557f616a6bb7572c83 [diff] [blame] |
Clarify file-closing example in tutorial (GH-11652)
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 7942786..fc2bd55 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst
@@ -322,6 +322,8 @@ >>> with open('workfile') as f: ... read_data = f.read() + + >>> # We can check that the file has been automatically closed. >>> f.closed True