[Python-ideas] Hexadecimal floating literals
Steven D'Aprano
steve at pearwood.info
Mon Sep 11 21:48:44 EDT 2017
More information about the Python-ideas mailing list
Mon Sep 11 21:48:44 EDT 2017
- Previous message (by thread): [Python-ideas] Hexadecimal floating literals
- Next message (by thread): [Python-ideas] Hexadecimal floating literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Sep 12, 2017 at 12:45:37AM +0200, Victor Stinner wrote:
> Instead of modifying the Python grammar, the alternative is to enhance
> float(str) to support it:
>
> k = float("0x1.2492492492492p-3") # 1/7
Why wouldn't you just write 1/7?
--
Steve
- Previous message (by thread): [Python-ideas] Hexadecimal floating literals
- Next message (by thread): [Python-ideas] Hexadecimal floating literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list