mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (#136664)
Some checks are pending
Tests / Windows MSI (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Undefined behavior sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
Some checks are pending
Tests / Windows MSI (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Undefined behavior sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
This commit is contained in:
parent
db2032407a
commit
e4654e0b3e
1 changed files with 6 additions and 6 deletions
|
@ -124,15 +124,15 @@ There are two problems on non-IEEE platforms:
|
|||
* What this does is undefined if *x* is a NaN or infinity.
|
||||
* ``-0.0`` and ``+0.0`` produce the same bytes string.
|
||||
|
||||
.. c:function:: int PyFloat_Pack2(double x, unsigned char *p, int le)
|
||||
.. c:function:: int PyFloat_Pack2(double x, char *p, int le)
|
||||
|
||||
Pack a C double as the IEEE 754 binary16 half-precision format.
|
||||
|
||||
.. c:function:: int PyFloat_Pack4(double x, unsigned char *p, int le)
|
||||
.. c:function:: int PyFloat_Pack4(double x, char *p, int le)
|
||||
|
||||
Pack a C double as the IEEE 754 binary32 single precision format.
|
||||
|
||||
.. c:function:: int PyFloat_Pack8(double x, unsigned char *p, int le)
|
||||
.. c:function:: int PyFloat_Pack8(double x, char *p, int le)
|
||||
|
||||
Pack a C double as the IEEE 754 binary64 double precision format.
|
||||
|
||||
|
@ -154,14 +154,14 @@ Return value: The unpacked double. On error, this is ``-1.0`` and
|
|||
Note that on a non-IEEE platform this will refuse to unpack a bytes string that
|
||||
represents a NaN or infinity.
|
||||
|
||||
.. c:function:: double PyFloat_Unpack2(const unsigned char *p, int le)
|
||||
.. c:function:: double PyFloat_Unpack2(const char *p, int le)
|
||||
|
||||
Unpack the IEEE 754 binary16 half-precision format as a C double.
|
||||
|
||||
.. c:function:: double PyFloat_Unpack4(const unsigned char *p, int le)
|
||||
.. c:function:: double PyFloat_Unpack4(const char *p, int le)
|
||||
|
||||
Unpack the IEEE 754 binary32 single precision format as a C double.
|
||||
|
||||
.. c:function:: double PyFloat_Unpack8(const unsigned char *p, int le)
|
||||
.. c:function:: double PyFloat_Unpack8(const char *p, int le)
|
||||
|
||||
Unpack the IEEE 754 binary64 double precision format as a C double.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue