Skip to content

Commit a243795

Browse files
committed
Struct
1 parent 17498dc commit a243795

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
@@ -1879,7 +1879,7 @@ Struct
18791879
* **Machine’s native type sizes and byte order are used by default.**
18801880

18811881
```python
1882-
from struct import pack, unpack, iter_unpack, calcsize
1882+
from struct import pack, unpack, iter_unpack
18831883
<bytes> = pack('<format>', <num_1> [, <num_2>, ...])
18841884
<tuple> = unpack('<format>', <bytes>)
18851885
<tuples> = iter_unpack('<format>', <bytes>)

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@
16661666
<div><h2 id="struct"><a href="#struct" name="struct">#</a>Struct</h2><ul>
16671667
<li><strong>Module that performs conversions between a sequence of numbers and a C struct, represented as a Python bytes object.</strong></li>
16681668
<li><strong>Machine’s native type sizes and byte order are used by default.</strong></li>
1669-
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> struct <span class="hljs-keyword">import</span> pack, unpack, iter_unpack, calcsize
1669+
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> struct <span class="hljs-keyword">import</span> pack, unpack, iter_unpack
16701670
&lt;bytes&gt; = pack(<span class="hljs-string">'&lt;format&gt;'</span>, &lt;num_1&gt; [, &lt;num_2&gt;, ...])
16711671
&lt;tuple&gt; = unpack(<span class="hljs-string">'&lt;format&gt;'</span>, &lt;bytes&gt;)
16721672
&lt;tuples&gt; = iter_unpack(<span class="hljs-string">'&lt;format&gt;'</span>, &lt;bytes&gt;)

0 commit comments

Comments
 (0)