<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
In <a href="http://docs.python.org/library/functions.html#open" target="_blank">http://docs.python.org/library/functions.html#open</a><br>
<br>
&quot;Modes &#39;r+&#39;, &#39;w+&#39; and &#39;a+&#39; open the file for updating (note that &#39;w+&#39; truncates the file).&quot;<br>
<br>
The term &quot;open the file for updating&quot; means nothing to me in this context. <br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
>From other place I learned this means that &#39;w+&#39; means open for both <br>
</blockquote>
writing and reading and creates file if it does not exist and truncates file if it exists. &#39;a+&#39; means appending and reading. &#39;r+&#39; also means open for reading and writing but does not create file if it does not exist, as well as does not truncate the file if it does exist.<br>


<br>
I&#39;m still not exactly clear what the difference between &#39;r+&#39; and &#39;a+&#39; is then, if &#39;r+&#39; does not truncate the file.<br>
<br>
In any case, I suggest removing the word &#39;updating&#39; and adding a description of what the &#39;+&#39; actually does.<br>
<br>
See <a href="http://stackoverflow.com/questions/1466000/python-open-built-in-function-difference-between-modes-a-a-w-w" target="_blank">http://stackoverflow.com/questions/1466000/python-open-built-in-function-difference-between-modes-a-a-w-w</a><br>

</blockquote></div><br>Although this SO question you&#39;re linking to probably isn&#39;t the best candidate for a good question (as its score and comments demonstrate), but underneath it all I find that the reference for C&#39;s `fopen` indeed doesn&#39;t use the verb &quot;update&quot;.<br>

<br>For example, for &quot;w+&quot; it says:<br><br>Open for reading and writing. The file is created if it does not exist, 
otherwise it is truncated. The stream is positioned at the beginning of 
the file.
<br><br>So I think this is something that can be considered.<br>Eli<br></div>