[docs] python Documentation bugs

谭奇 tanqi at bytedance.com
Thu Apr 14 09:35:15 EDT 2016


Hi :
I find bug for the use of keyword ‘with’, as follow:
with open('workfile', 'r') as f:
    read_data = f.read()
f.closed
url:https://docs.python.org/2/tutorial/inputoutput.html

f.closed is not necessary, as ‘with’  is very good handling exceptions

Thinks!

--
Growth-RD F2-403 谭奇
TEL:18513622028

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20160414/7041a38b/attachment-0001.html>


More information about the docs mailing list