gh-101100: Fix Sphinx warnings in `c-api/float.rst` by hugovk · Pull Request #113494 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you document PY_BIG_ENDIAN, you should also document PY_LITTLE_ENDIAN.
And I think that float.rst is a wrong place for this. They have little relation to floats. Actually, the endianess of floating point representation can be different from the endianess of integer representation (see DOUBLE_IS_BIG_ENDIAN_IEEE754, DOUBLE_IS_LITTLE_ENDIAN_IEEE754 and DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754).