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 LambertDW, MLModel, georg.brandl
Date 2009-01-26.04:35:05
SpamBayes Score 2.7407032e-05
Marked as misclassified No
Message-id <p06240804c5a2eae07af0@[10.0.1.222]>
In-reply-to <1232932525.99.0.463969832549.issue5061@psf.upfronthosting.co.za>
Content
>David W. Lambert <lambertdw@corning.com> added the comment:
>
>I disagree.  You propose to examine the trees but ignore the forest.
>The perspective programmer needs to understand what is a file.
>

Could you be more specific about what parts of my comments you 
disagree with? The current documentation leaves open the possibility 
of someone thinking that random access doesn't apply to text files, 
getting errors when entering the apparently legal, but in reality 
not, 'b', and that '+', 't+', and 'b+' are legal whereas they require 
a r, w, or a.

I know this bit of documentation has been stable for years, but in 
doing some writing I got tripped up by trying to write an example 
using just '+', despite being very knowledgeable about Python. At 
that pointI experimented with the various combinations and compared 
the reality against the documentation. What I ended up doing is 
splitting the table in two and listing the + combinations explicitly:
Text or Binary:
t	text
b	binary

Read, Write, or Append:
r	beginning, read
w	beginning, write
a	end, write
r+	beginning, read/write
w+	beginning, read/write
a+	end, read/write

-- 

         --- Mitchell
Files
File name Uploaded
unnamed MLModel, 2009-01-26.04:35:04
History
Date User Action Args
2009-01-26 04:35:07MLModelsetrecipients: + MLModel, georg.brandl, LambertDW
2009-01-26 04:35:05MLModellinkissue5061 messages
2009-01-26 04:35:05MLModelcreate