<div><h2id="sqlite"><ahref="#sqlite"name="sqlite">#</a>SQLite</h2><p><strong>Server-less database engine that stores each database into separate file.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">import</span> sqlite3
db = sqlite3.connect(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Also ':memory:'.</span>
...
@ -1651,6 +1621,36 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
<div><h2id="bytes"><ahref="#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><codeclass="python language-python hljs"><bytes> = <spanclass="hljs-string">b'<str>'</span><spanclass="hljs-comment"># Only accepts ASCII characters and \x00 - \xff.</span>
<int> = <bytes>[<index>] <spanclass="hljs-comment"># Returns int in range from 0 to 255.</span>
<bytes> = <bytes>[<slice>] <spanclass="hljs-comment"># Returns bytes even if it has only one element.</span>
@ -1724,11 +1724,23 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
</code></pre></div>
<div><h2id="memoryview"><ahref="#memoryview"name="memoryview">#</a>Memory View</h2><p><strong>Used for accessing the internal data of an object that supports the buffer protocol.</strong></p><pre><codeclass="python language-python hljs"><memoryview> = memoryview(<bytes> / <bytearray> / <array>)
<memoryview>.release()
<div><h2id="memoryview"><ahref="#memoryview"name="memoryview">#</a>Memory View</h2><p><strong>Used for accessing the internal data of an object that supports the buffer protocol.</strong></p><pre><codeclass="python language-python hljs"><mview> = memoryview(<bytes> / <bytearray> / <array>)
<mview>.release()<spanclass="hljs-comment"># Releases the buffer.</span>
</code></pre></div>
<pre><codeclass="python language-python hljs"><num> = <mview>[<index>] <spanclass="hljs-comment"># Returns int in range from 0 to 255.</span>
<mview> = <mview>[<slice>] <spanclass="hljs-comment"># Returns bytes even if it has only one element.</span>
<file>.write(<mview>)
</code></pre>
<pre><codeclass="python language-python hljs"><bytes> = <bytes>.join(<coll_of_mviews>) <spanclass="hljs-comment"># Joins elements using bytes object as separator.</span>
<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
xxxxxxxxxx