Browse Source

Struct

pull/44/head
Jure Šorn 5 years ago
parent
commit
9e387f5eb3
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1892,7 +1892,7 @@ def write_bytes(filename, bytes_obj):
Struct
------
* **Module that performs conversions between a sequence of numbers and a C struct, represented as a Python bytes object.**
* **Module that performs conversions between a sequence of numbers and a bytes object.**
* **Machine’s native type sizes and byte order are used by default.**
```python

2
index.html

@ -1681,7 +1681,7 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
</code></pre></div>
<div><h2 id="struct"><a href="#struct" name="struct">#</a>Struct</h2><ul>
<li><strong>Module that performs conversions between a sequence of numbers and a C struct, represented as a Python bytes object.</strong></li>
<li><strong>Module that performs conversions between a sequence of numbers and a bytes object.</strong></li>
<li><strong>Machine’s native type sizes and byte order are used by default.</strong></li>
</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
&lt;bytes&gt; = pack(<span class="hljs-string">'&lt;format&gt;'</span>, &lt;num_1&gt; [, &lt;num_2&gt;, ...])

Loading…
Cancel
Save