@ -1701,14 +1701,14 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
<div><h3id="encode-1">Encode</h3><pre><codeclass="python language-python hljs"><bytes> = bytes(<coll_of_ints>) <spanclass="hljs-comment"># Ints must be in range from 0 to 255.</span>
<div><h3id="encode-1">Encode</h3><pre><codeclass="python language-python hljs"><bytes> = bytes(<coll_of_ints>) <spanclass="hljs-comment"># Ints must be in range from 0 to 255.</span>
<bytes> = bytes.fromhex(<spanclass="hljs-string">'<hex>'</span>)<spanclass="hljs-comment"># Hex numbers can be separated by spaces.</span>
</code></pre></div>
</code></pre></div>
<div><h3id="decode-1">Decode</h3><pre><codeclass="python language-python hljs"><list> = list(<bytes>) <spanclass="hljs-comment"># Returns ints in range from 0 to 255.</span>
<div><h3id="decode-1">Decode</h3><pre><codeclass="python language-python hljs"><list> = list(<bytes>) <spanclass="hljs-comment"># Returns ints in range from 0 to 255.</span>
<spanclass="hljs-string">'<hex>'</span> = <bytes>.hex()<spanclass="hljs-comment"># Returns a string of hexadecimal numbers.</span>
</code></pre></div>
</code></pre></div>
<div><h3id="readbytesfromfile">Read Bytes from File</h3><pre><codeclass="python language-python hljs"><spanclass="hljs-function"><spanclass="hljs-keyword">def</span><spanclass="hljs-title">read_bytes</span><spanclass="hljs-params">(filename)</span>:</span>
<div><h3id="readbytesfromfile">Read Bytes from File</h3><pre><codeclass="python language-python hljs"><spanclass="hljs-function"><spanclass="hljs-keyword">def</span><spanclass="hljs-title">read_bytes</span><spanclass="hljs-params">(filename)</span>:</span>
@ -1782,12 +1782,13 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
<bytes> = bytes(<mview>) <spanclass="hljs-comment"># Creates a new bytes object.</span>
<bytes> = bytes(<mview>) <spanclass="hljs-comment"># Creates a new bytes object.</span>
<bytes> = <bytes>.join(<coll_of_mviews>) <spanclass="hljs-comment"># Joins mviews using bytes object as sep.</span>
<bytes> = <bytes>.join(<coll_of_mviews>) <spanclass="hljs-comment"># Joins mviews using bytes object as sep.</span>
<array> = array(<spanclass="hljs-string">'<typecode>'</span>, <mview>) <spanclass="hljs-comment"># Treats mview as a sequence of numbers.</span>
<array> = array(<spanclass="hljs-string">'<typecode>'</span>, <mview>) <spanclass="hljs-comment"># Treats mview as a sequence of numbers.</span>
<list> = list(<mview>) <spanclass="hljs-comment"># Returns list of ints or floats.</span>
<str> = str(<mview>, <spanclass="hljs-string">'utf-8'</span>) <spanclass="hljs-comment"># Treats mview as a bytes object.</span>
<spanclass="hljs-string">'<hex>'</span> = <mview>.hex() <spanclass="hljs-comment"># Treats mview as a bytes object.</span>
</code></pre>
<div><h2id="deque"><ahref="#deque"name="deque">#</a>Deque</h2><p><strong>A thread-safe list with efficient appends and pops from either side. Pronounced "deck".</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> collections <spanclass="hljs-keyword">import</span> deque
<div><h2id="deque"><ahref="#deque"name="deque">#</a>Deque</h2><p><strong>A thread-safe list with efficient appends and pops from either side. Pronounced "deck".</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> collections <spanclass="hljs-keyword">import</span> deque