clarify BytesIO

This commit is contained in:
Mark Pilgrim
2009-08-16 13:44:24 -04:00
parent 52d695d769
commit 234c41e9b6
+1 -1
View File
@@ -399,7 +399,7 @@ AttributeError: '_io.BufferedReader' object has no attribute 'encoding'</samp></
</ol>
<blockquote class=note>
<p><span class=u>&#x261E;</span><code>io.StringIO</code> lets you treat a string as a file. There&#8217;s also a <code>io.BytesIO</code> class, which lets you treat a byte array as a file.
<p><span class=u>&#x261E;</span><code>io.StringIO</code> lets you treat a string as a text file. There&#8217;s also a <code>io.BytesIO</code> class, which lets you treat a byte array as a binary file.
</blockquote>
<h3 id=gzip>Handling Compressed Files</h3>