id fiddling

This commit is contained in:
Mark Pilgrim
2009-07-16 12:39:46 -04:00
parent e35d9d1bda
commit cefd2703e5
+5 -5
View File
@@ -22,7 +22,7 @@ body{counter-reset:h1 12}
<h2 id=divingin>Diving In</h2>
<p class=f>FIXME
<h2 id=reading-from-text-files>Reading From Text Files</h2>
<h2 id=reading>Reading From Text Files</h2>
<p>FIXME
@@ -124,7 +124,7 @@ ValueError: I/O operation on closed file</samp>
<p>FIXME "with open(...) as file" pattern
<h3 id=one-line-at-a-time>Reading Data One Line At A Time</h3>
<h3 id=for>Reading Data One Line At A Time</h3>
<p>FIXME
@@ -134,7 +134,7 @@ ValueError: I/O operation on closed file</samp>
A &#8220;line&#8221; of a text file is just what you think it is&nbsp;&mdash;&nbsp;a sequence of characters delimited by a carriage return. Of course, it can&#8217;t really be that simple, can it? Text files can use several different characters to mark the end of a line. Some use a carriage return character, others use a line feed character, and some use both characters at the end of every line. Python handles all of these cases automatically, so you can say, &#8220;Hey, I want to read this text file one line at a time&#8221; and it will Just Work.
-->
<h2 id=write>Writing to Text Files</h2>
<h2 id=writing>Writing to Text Files</h2>
<p>FIXME
@@ -172,7 +172,7 @@ test succeededline 2
<p>FIXME
<h3 id=write-methods>Write A Little, Write A Lot</h3>
<h3 id=write>Write A Little, Write A Lot</h3>
<p>FIXME write(), writelines(), .writeable
@@ -363,7 +363,7 @@ special redirecting itself, just doing normal <code>print</code> statements or w
one program&#8217;s output to the next program&#8217;s input.
-->
<h2 id=further-reading>Further Reading</h2>
<h2 id=furtherreading>Further Reading</h2>
<p>FIXME