Jeffery To
|
ad50eb7c0a
|
python3: Fix float byte order detection
This backports patches from bpo-34585[1] to fix byte order detection of
floats.
Fixing byte order detection allows the repr() of floats to be
shorter[2]. sys.float_repr_style should be 'short' instead of 'legacy'
on supported platforms.
See #11134.
[1]: https://bugs.python.org/issue34585
[2]: https://docs.python.org/3.8/whatsnew/3.1.html#other-language-changes
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
|
2020-01-30 19:12:25 +08:00 |
|