This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MLModel
Recipients MLModel, georg.brandl
Date 2009-01-25.23:41:34
SpamBayes Score 8.985467e-06
Marked as misclassified No
Message-id <1232926902.91.0.899964022103.issue5061@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-25 23:41:43MLModelsetrecipients: + MLModel, georg.brandl
2009-01-25 23:41:42MLModelsetmessageid: <1232926902.91.0.899964022103.issue5061@psf.upfronthosting.co.za>
2009-01-25 23:41:36MLModellinkissue5061 messages
2009-01-25 23:41:35MLModelcreate