PEP 515 added underscore to numeric literals, it brings better readability.
PEP 515 -- Underscores in Numeric Literals
https://www.python.org/dev/peps/pep-0515/
Is it possible to add _KB, _MB, _GB to numeric literals, for example:
200_KB (200*1024)
150_MB (150*1024*1024)
2_GB (2*1024*1024*1024)
Do you think it's a good code style?
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/QIKCXSOP6UZDSPJ5RJKX7EAXF7YAJYLK/
Code of Conduct: http://python.org/psf/codeofconduct/