Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bde6723

Browse files
committed
Array
1 parent e4ffd2b commit bde6723

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,22 +1966,22 @@ b'\x00\x01\x00\x02\x00\x00\x00\x03'
19661966
* **`'<'` - little-endian**
19671967
* **`'>'` - big-endian (also `'!'`)**
19681968

1969-
#### Integer types. Use a capital letter for unsigned type. Standard sizes are in brackets:
1969+
#### Integer types. Use a capital letter for unsigned type. Minimum and standard sizes are in brackets:
19701970
* **`'x'` - pad byte**
1971-
* **`'b'` - char (1)**
1972-
* **`'h'` - short (2)**
1973-
* **`'i'` - int (4)**
1974-
* **`'l'` - long (4)**
1975-
* **`'q'` - long long (8)**
1971+
* **`'b'` - char (1/1)**
1972+
* **`'h'` - short (2/2)**
1973+
* **`'i'` - int (2/4)**
1974+
* **`'l'` - long (4/4)**
1975+
* **`'q'` - long long (8/8)**
19761976

19771977
#### Floating point types:
1978-
* **`'f'` - float (4)**
1979-
* **`'d'` - double (8)**
1978+
* **`'f'` - float (4/4)**
1979+
* **`'d'` - double (8/8)**
19801980

19811981

19821982
Array
19831983
-----
1984-
**List that can only hold numbers of a predefined type. Available types and their sizes in bytes are listed above.**
1984+
**List that can only hold numbers of a predefined type. Available types and their minimum sizes in bytes are listed above. Sizes and byte order are always determined by the system.**
19851985

19861986
```python
19871987
from array import array

index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,24 +1754,24 @@
17541754
<li><strong><code class="python hljs"><span class="hljs-string">'='</span></code> - native byte order</strong></li>
17551755
<li><strong><code class="python hljs"><span class="hljs-string">'&lt;'</span></code> - little-endian</strong></li>
17561756
<li><strong><code class="python hljs"><span class="hljs-string">'&gt;'</span></code> - big-endian (also <code class="python hljs"><span class="hljs-string">'!'</span></code>)</strong></li>
1757-
</ul></div></div><div><h4 id="integertypesuseacapitalletterforunsignedtypestandardsizesareinbrackets">Integer types. Use a capital letter for unsigned type. Standard sizes are in brackets:</h4><ul>
1757+
</ul></div></div><div><h4 id="integertypesuseacapitalletterforunsignedtypeminimumandstandardsizesareinbrackets">Integer types. Use a capital letter for unsigned type. Minimum and standard sizes are in brackets:</h4><ul>
17581758
<li><strong><code class="python hljs"><span class="hljs-string">'x'</span></code> - pad byte</strong></li>
1759-
<li><strong><code class="python hljs"><span class="hljs-string">'b'</span></code> - char (1)</strong></li>
1760-
<li><strong><code class="python hljs"><span class="hljs-string">'h'</span></code> - short (2)</strong></li>
1761-
<li><strong><code class="python hljs"><span class="hljs-string">'i'</span></code> - int (4)</strong></li>
1762-
<li><strong><code class="python hljs"><span class="hljs-string">'l'</span></code> - long (4)</strong></li>
1763-
<li><strong><code class="python hljs"><span class="hljs-string">'q'</span></code> - long long (8)</strong></li>
1759+
<li><strong><code class="python hljs"><span class="hljs-string">'b'</span></code> - char (1/1)</strong></li>
1760+
<li><strong><code class="python hljs"><span class="hljs-string">'h'</span></code> - short (2/2)</strong></li>
1761+
<li><strong><code class="python hljs"><span class="hljs-string">'i'</span></code> - int (2/4)</strong></li>
1762+
<li><strong><code class="python hljs"><span class="hljs-string">'l'</span></code> - long (4/4)</strong></li>
1763+
<li><strong><code class="python hljs"><span class="hljs-string">'q'</span></code> - long long (8/8)</strong></li>
17641764
</ul></div><div><h4 id="floatingpointtypes">Floating point types:</h4><ul>
1765-
<li><strong><code class="python hljs"><span class="hljs-string">'f'</span></code> - float (4)</strong></li>
1766-
<li><strong><code class="python hljs"><span class="hljs-string">'d'</span></code> - double (8)</strong></li>
1765+
<li><strong><code class="python hljs"><span class="hljs-string">'f'</span></code> - float (4/4)</strong></li>
1766+
<li><strong><code class="python hljs"><span class="hljs-string">'d'</span></code> - double (8/8)</strong></li>
17671767
</ul></div>
17681768

17691769

17701770

17711771

17721772

17731773

1774-
<div><h2 id="array"><a href="#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><code class="python language-python hljs"><span class="hljs-keyword">from</span> array <span class="hljs-keyword">import</span> array
1774+
<div><h2 id="array"><a href="#array" name="array">#</a>Array</h2><p><strong>List that can only hold numbers of a predefined type. Available types and their minimum sizes in bytes are listed above. Sizes and byte order are always determined by the system.</strong></p><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> array <span class="hljs-keyword">import</span> array
17751775
&lt;array&gt; = array(<span class="hljs-string">'&lt;typecode&gt;'</span>, &lt;collection&gt;) <span class="hljs-comment"># Array from collection of numbers.</span>
17761776
&lt;array&gt; = array(<span class="hljs-string">'&lt;typecode&gt;'</span>, &lt;bytes&gt;) <span class="hljs-comment"># Array from bytes object.</span>
17771777
&lt;array&gt; = array(<span class="hljs-string">'&lt;typecode&gt;'</span>, &lt;array&gt;) <span class="hljs-comment"># Treats array as a sequence of numbers.</span>

parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ function fixPageBreaksFile() {
527527
function fixPageBreaksStruct() {
528528
const formatDiv = $('#floatingpointtypes').parent().parent().parent().parent()
529529
move(formatDiv, 'floatingpointtypes')
530-
move(formatDiv, 'integertypesuseacapitalletterforunsignedtypestandardsizesareinbrackets')
530+
move(formatDiv, 'integertypesuseacapitalletterforunsignedtypeminimumandstandardsizesareinbrackets')
531531
move(formatDiv, 'forstandardsizesstartformatstringwith')
532532
}
533533

0 commit comments

Comments
 (0)