Skip to content

Commit

Permalink
typo "an bytes object" --> "a bytes object "
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pilgrim committed Sep 26, 2009
1 parent 2aec311 commit 43c9870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strings.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ <h2 id=byte-arrays>Strings vs. Bytes</h2>
<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>
Expand Down

0 comments on commit 43c9870

Please sign in to comment.