Previously you were adamant that it is important that the units be propagated into the final result. In my experience this rarely works out as one expects because the units come out in an overly complicated, confusing form or unexpected form. For example, you gave the units for Planck's constant as m²kg/s which to me was confusing and unexpected. It took me a while to confirm that was equivalent to J-s, which is the more traditional way of specifying its units.
To show the value of what you are proposing, you should give the units of the final result. The fact that they are missing significantly weakens your example. Given your previous comments about the importance of propagating the units, it is a little weird that in your one example you don't bother to show it. It is unclear what these examples are meant to show. Is the point to compute the final units of n? If so, why did you not show them. If not, why were the units specified at all? Are they primarily there for documentation purposes? If so, can't you just put them in comments. If the units need to be in the code because they are employed somehow, you should show that. I am still not understanding your justification for why you want to add units to Python. This application seems like a one-time hand calculation rather than a programming problem. Perhaps a better approach would simply be to build a units aware scientific calculator application. That was you could design the best way to include units without any constrains from the Python calculator. -Ken _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ZHGAQOPUEC2MFYQSAJK6UZXYQN54TP5M/ Code of Conduct: http://python.org/psf/codeofconduct/