Message80549
Documentation of the mode parameter of the built-in function open is
insufficient with respect to what values are acceptable.
(1) Right after the mode table, it states "For binary random access, the
mode 'w+b' opens and truncates the file to 0 bytes, while 'r+b' opens
the file without truncation." This is true of text random access too --
w+ or r+. Furthermore, the possibility of a+, while meaningful, is not
mentioned.
(2) The documentation does not, but should, say that while w/r/a with or
without the plus can appear without a 'b' or 't', a plain 'b' as the
mode valuable raises an error that r/w/a wasn't specified.
(3) The documentation does not, but should, say that + cannot stand on
its own -- the mode must also include an r, w, or a. The table listing
the meanings of each value just says + means "open a disk file for
updating (reading and writing)". Suggested rewording is to put the
phrase "in conjunction with 'r', 'w', or 'a', open a disk file...".
Alternatively, add a note to that table entry and explain below that the
plus must accompany a r/w/a. |
|
Date |
User |
Action |
Args |
2009-01-25 23:41:43 | MLModel | set | recipients:
+ MLModel, georg.brandl |
2009-01-25 23:41:42 | MLModel | set | messageid: <1232926902.91.0.899964022103.issue5061@psf.upfronthosting.co.za> |
2009-01-25 23:41:36 | MLModel | link | issue5061 messages |
2009-01-25 23:41:35 | MLModel | create | |
|