Skip to content

Commit 2116305

Browse files
committed
Memory view
1 parent 3036c03 commit 2116305

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,10 +1964,10 @@ Memory View
19641964
<bin_file>.write(<mview>) # Writes mview to a binary file.
19651965
<bytes> = bytes(<mview>) # Creates a new bytes object.
19661966
<bytes> = <bytes>.join(<coll_of_mviews>) # Joins mviews using bytes object as sep.
1967+
<list> = list(<mview>) # Returns list of ints or floats.
19671968
```
19681969

19691970
```python
1970-
<list> = list(<mview>) # Returns list of ints or floats.
19711971
<str> = str(<mview>, 'utf-8')
19721972
<int> = int.from_bytes(<mview>, byteorder='big|little', signed=False)
19731973
'<hex>' = <mview>.hex()

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,9 +1744,9 @@
17441744
<pre><code class="python language-python hljs">&lt;bin_file&gt;.write(&lt;mview&gt;) <span class="hljs-comment"># Writes mview to a binary file.</span>
17451745
&lt;bytes&gt; = bytes(&lt;mview&gt;) <span class="hljs-comment"># Creates a new bytes object.</span>
17461746
&lt;bytes&gt; = &lt;bytes&gt;.join(&lt;coll_of_mviews&gt;) <span class="hljs-comment"># Joins mviews using bytes object as sep.</span>
1747+
&lt;list&gt; = list(&lt;mview&gt;) <span class="hljs-comment"># Returns list of ints or floats.</span>
17471748
</code></pre>
1748-
<pre><code class="python language-python hljs">&lt;list&gt; = list(&lt;mview&gt;) <span class="hljs-comment"># Returns list of ints or floats.</span>
1749-
&lt;str&gt; = str(&lt;mview&gt;, <span class="hljs-string">'utf-8'</span>)
1749+
<pre><code class="python language-python hljs">&lt;str&gt; = str(&lt;mview&gt;, <span class="hljs-string">'utf-8'</span>)
17501750
&lt;int&gt; = int.from_bytes(&lt;mview&gt;, byteorder=<span class="hljs-string">'big|little'</span>, signed=<span class="hljs-keyword">False</span>)
17511751
<span class="hljs-string">'&lt;hex&gt;'</span> = &lt;mview&gt;.hex()
17521752
</code></pre>

0 commit comments

Comments
 (0)