[Python-ideas] SI scale factors alone, without units or dimensional analysis

MRAB python at mrabarnett.plus.com
Fri Oct 28 16:06:41 EDT 2016


On 2016-08-26 13:47, Steven D'Aprano wrote:
> Ken has made what I consider a very reasonable suggestion, to introduce
> SI prefixes to Python syntax for numbers. For example, typing 1K will be
> equivalent to 1000.
>
Just for the record, this is what you can now do in C++:

User-Defined Literals
http://arne-mertz.de/2016/10/modern-c-features-user-defined-literals/



More information about the Python-ideas mailing list