On 8/26/16, Steven D'Aprano <st...@pearwood.info> wrote:

[...]
> from scaling import *
> int_value = 8*M
> float_value = 8.0*M
> fraction_value = Fraction(1, 8)*M
> decimal_value = Decimal("1.2345")*M
[...]
> Disadvantages: none I can think of.

Really interesting idea, but from my POV a little disadvantage is
"import *" which bring bunch of one-letter variables into namespace.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to