[issue9192] Add a a way to determine float format
Mark Dickinson added the comment: What use-cases did you have in mind for this? (I assume that something motivated this report.) It seems to me that there's not actually much to say about the float format: the only format that Python realistically supports these days is the IEEE 754 binary64 format. (In theory we still support whatever C uses, but in practice I suspect that if we were ever to manage to run Python on a machine whose C doubles *weren't* in binary64 format, we'd see quite a lot of breakage.) So the only variation that we'll see is little-endian versus big-endian. We don't even support the ARM OABI mixed-endian format. Should endianness be considered an important part of the format? -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9192] Add a a way to determine float format
Changes by Hieu Nguyen ndhie...@gmail.com: -- nosy: +hieu.nguyen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9192] Add a a way to determine float format
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9192] Add a a way to determine float format
New submission from Benjamin Peterson benja...@python.org: At the moment, the only way is float.__getformat__() which is unpleasant and unofficial. Perhaps we could add a member to sys.float_info. -- components: Interpreter Core messages: 109488 nosy: benjamin.peterson, mark.dickinson priority: low severity: normal status: open title: Add a a way to determine float format type: feature request versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com