]> granicus.if.org Git - python/commit
Reorganize the docs for 'file' and 'open()' after some discussion with Fred.
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 29 Jul 2006 18:14:07 +0000 (18:14 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 29 Jul 2006 18:14:07 +0000 (18:14 +0000)
commit956597f4ef4ef4c65b0a5a7e488757d865832a0e
tree0adf6cac0a400d39992b57559280883e2d3f2379
parentfbdeaad06910a50d6f05da177949b9a451a1132a
Reorganize the docs for 'file' and 'open()' after some discussion with Fred.

We want to encourage users to write open() when opening a file, but
open() was described with a single paragraph and
'file' had lots of explanation of the mode and bufsize arguments.

I've shrunk the description of 'file' to cross-reference to the 'File
objects' section, and to open() for an explanation of the arguments.

open() now has all the paragraphs about the mode string.  The bufsize
argument was moved up so that it isn't buried at the end; now there's
1 paragraph on mode, 1 on bufsize, and then 3 more on mode.  Various
other edits and rearrangements were made in the process.

It's probably best to read the final text and not to try to make sense
of the diffs.
Doc/lib/libfuncs.tex