现在内容: write(str):返回为None,将一字符串str写入文件中。 flush():返回None,把I/O 缓冲区的内容写入磁盘文件中,真正写入文件。 close():返回None,关闭文件。
建议修订为: write(str):返回为None,将一字符串str写入文件中。 flush():返回None,把I/O 缓冲区的内容写入磁盘文件中,这才是真正写入文件。 close():返回None或一个整 数,关闭文件。
理由:
| close(...)
| close() -> None or (perhaps) an integer. Close the file.
|
| Sets data attribute .closed to True. A closed file cannot be used for
| further I/O operations. close() may be called more than once without
| error. Some kinds of file objects (for example, opened by popen())
| may return an exit status upon closing.
Comment #1
Posted on Sep 24, 2008 by Grumpy Dog(No comment was entered for this change.)
Comment #2
Posted on Sep 24, 2008 by Grumpy Dogr1642 麻烦复校下~ wiki还没同步
Comment #3
Posted on Sep 25, 2008 by Massive Giraffe(No comment was entered for this change.)
Comment #4
Posted on Sep 26, 2008 by Grumpy Dog(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium
Component-LovePy
Milestone-TechReview