mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
clarify BytesIO
This commit is contained in:
+1
-1
@@ -399,7 +399,7 @@ AttributeError: '_io.BufferedReader' object has no attribute 'encoding'</samp></
|
||||
</ol>
|
||||
|
||||
<blockquote class=note>
|
||||
<p><span class=u>☞</span><code>io.StringIO</code> lets you treat a string as a file. There’s also a <code>io.BytesIO</code> class, which lets you treat a byte array as a file.
|
||||
<p><span class=u>☞</span><code>io.StringIO</code> lets you treat a string as a text file. There’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>
|
||||
|
||||
Reference in New Issue
Block a user