[Python-ideas] Hexadecimal floating literals

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 21 19:27:00 EDT 2017


Lucas Wiman wrote:
> It is inconsistent that you can write hexadecimal integers but not 
> floating point numbers. Consistency in syntax is /fewer/ things to 
> learn, not more.

You still need to learn the details of the hex syntax for
floats, though. It's not obvious e.g. that you need to use
"p" for the exponent.

-- 
Greg


More information about the Python-ideas mailing list