mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-65002: Make note that null bytes are used to pad bytes (#98635)
This commit is contained in:
parent
25811d9010
commit
8cd21c2c5d
1 changed files with 4 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ platform-dependent.
|
|||
+--------+--------------------------+--------------------+----------------+------------+
|
||||
| Format | C Type | Python type | Standard size | Notes |
|
||||
+========+==========================+====================+================+============+
|
||||
| ``x`` | pad byte | no value | | |
|
||||
| ``x`` | pad byte | no value | | \(7) |
|
||||
+--------+--------------------------+--------------------+----------------+------------+
|
||||
| ``c`` | :c:expr:`char` | bytes of length 1 | 1 | |
|
||||
+--------+--------------------------+--------------------+----------------+------------+
|
||||
|
|
@ -291,6 +291,9 @@ Notes:
|
|||
operations. See the Wikipedia page on the `half-precision floating-point
|
||||
format <half precision format_>`_ for more information.
|
||||
|
||||
(7)
|
||||
For padding, ``x`` inserts null bytes.
|
||||
|
||||
|
||||
A format character may be preceded by an integral repeat count. For example,
|
||||
the format string ``'4h'`` means exactly the same as ``'hhhh'``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue