@ -1723,19 +1723,19 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
<div><h2id="array"><ahref="#array"name="array">#</a>Array</h2><p><strong>List that can only hold numbers of a predefined type. Available types and their sizes in bytes are listed above.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> array <spanclass="hljs-keyword">import</span> array
<array> = array(<spanclass="hljs-string">'<typecode>'</span>, <collection>) <spanclass="hljs-comment"># Array from coll. of numbers.</span>
<array> = array(<spanclass="hljs-string">'<typecode>'</span>, <bytes>) <spanclass="hljs-comment"># Array from bytes object.</span>
<array> = array(<spanclass="hljs-string">'<typecode>'</span>, <collection>) <spanclass="hljs-comment"># Array from coll. of numbers.</span>
<array> = array(<spanclass="hljs-string">'<typecode>'</span>, <bytes>) <spanclass="hljs-comment"># Array from bytes object.</span>
<num> = <mview>[<index>] <spanclass="hljs-comment"># Can be int or float.</span>
<mview> = <mview>[<slice>] <spanclass="hljs-comment"># Mview with rearanged elements.</span>
<mview> = <mview>[<slice>] <spanclass="hljs-comment"># Mview with rearranged elements.</span>
<mview> = <mview>.cast(<spanclass="hljs-string">'<typecode>'</span>) <spanclass="hljs-comment"># Casts a memoryview to a new format.</span>
<mview>.release() <spanclass="hljs-comment"># Releases the object's memory buffer.</span>
</code></pre></div>
@ -1754,10 +1754,10 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
</code></pre></div>
<pre><codeclass="python language-python hljs"><deque>.appendleft(<el>) <spanclass="hljs-comment"># Opposite element is dropped if full.</span>
<el> = <deque>.popleft() <spanclass="hljs-comment"># Raises IndexError if empty.</span>
<deque>.rotate(n=<spanclass="hljs-number">1</span>) <spanclass="hljs-comment"># Rotates elements to the right.</span>
<pre><codeclass="python language-python hljs"><deque>.appendleft(<el>) <spanclass="hljs-comment"># Opposite element is dropped if full.</span>
<el> = <deque>.popleft() <spanclass="hljs-comment"># Raises IndexError if empty.</span>
<div><h2id="curses"><ahref="#curses"name="curses">#</a>Curses</h2><div><h4id="clearsterminalprintsmessageandwaitsforesckeypress">Clears terminal, prints message and waits for ESC key press:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> curses <spanclass="hljs-keyword">import</span> wrapper, curs_set, ascii
<div><h2id="curses"><ahref="#curses"name="curses">#</a>Curses</h2><div><h4id="clearstheterminalprintsamessageandwaitsforanesckeypress">Clears the terminal, prints a message and waits for an ESC key press:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> curses <spanclass="hljs-keyword">import</span> wrapper, curs_set, ascii