Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f57188c

Browse files
committed
Bytes
1 parent 10d1b9b commit f57188c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ Bytes
18981898
**Bytes object is an immutable sequence of single bytes. Mutable version is called bytearray.**
18991899

19001900
```python
1901-
<bytes> = b'<str>' # Only accepts ASCII characters and \x00 - \xff.
1901+
<bytes> = b'<str>' # Only accepts ASCII characters and \x00-\xff.
19021902
<int> = <bytes>[<index>] # Returns int in range from 0 to 255.
19031903
<bytes> = <bytes>[<slice>] # Returns bytes even if it has only one element.
19041904
<bytes> = <bytes>.join(<coll_of_bytes>) # Joins elements using bytes object as separator.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@
17211721
</code></pre></div>
17221722

17231723

1724-
<div><h2 id="bytes"><a href="#bytes" name="bytes">#</a>Bytes</h2><p><strong>Bytes object is an immutable sequence of single bytes. Mutable version is called bytearray.</strong></p><pre><code class="python language-python hljs">&lt;bytes&gt; = <span class="hljs-string">b'&lt;str&gt;'</span> <span class="hljs-comment"># Only accepts ASCII characters and \x00 - \xff.</span>
1724+
<div><h2 id="bytes"><a href="#bytes" name="bytes">#</a>Bytes</h2><p><strong>Bytes object is an immutable sequence of single bytes. Mutable version is called bytearray.</strong></p><pre><code class="python language-python hljs">&lt;bytes&gt; = <span class="hljs-string">b'&lt;str&gt;'</span> <span class="hljs-comment"># Only accepts ASCII characters and \x00-\xff.</span>
17251725
&lt;int&gt; = &lt;bytes&gt;[&lt;index&gt;] <span class="hljs-comment"># Returns int in range from 0 to 255.</span>
17261726
&lt;bytes&gt; = &lt;bytes&gt;[&lt;slice&gt;] <span class="hljs-comment"># Returns bytes even if it has only one element.</span>
17271727
&lt;bytes&gt; = &lt;bytes&gt;.join(&lt;coll_of_bytes&gt;) <span class="hljs-comment"># Joins elements using bytes object as separator.</span>

0 commit comments

Comments
 (0)