typo "an bytes object" --> "a bytes object "

This commit is contained in:
Mark Pilgrim
2009-09-25 22:07:48 -04:00
parent 2aec311cfa
commit 43c9870008
+1 -1
View File
@@ -338,7 +338,7 @@ TypeError: 'bytes' object does not support item assignment</samp></pre>
<samp class=p>>>> </samp><kbd class=pp>barr</kbd>
<samp class=pp>bytearray(b'fbcde')</samp></pre>
<ol>
<li>To convert an <code>bytes</code> object into a mutable <code>bytearray</code> object, use the built-in <code>bytearray()</code> function.
<li>To convert a <code>bytes</code> object into a mutable <code>bytearray</code> object, use the built-in <code>bytearray()</code> function.
<li>All the methods and operations you can do on a <code>bytes</code> object, you can do on a <code>bytearray</code> object too.
<li>The one difference is that, with the <code>bytearray</code> object, you can assign individual bytes using index notation. The assigned value must be an integer between 0&ndash;255.
</ol>