On Mon, 4 Apr 2022 at 07:45, Ethan Furman <et...@stoneleaf.us> wrote:
> Mechanically, are `lbs`, `km`, `hr`, etc., something that is imported, or are 
> they tags attached to the numbers?  If
> attached to the numbers, memory size would increase and performance might 
> decrease -- but, how often do we have a number
> that is truly without a unit?
>
> How old are you?  35 years
> How much do you weigh?  300 kg
> What temperature do you cook bread at?  350 F
>

Very frequently - it'd be called an index. (What sort of numbers
should enumerate() return, for instance? Clearly that, whatever it is,
is an index.) But if every int and float has a tag attached to it,
it's not that big a deal to have either a default tag, or leave the
field NULL or None, to define it to be a unitless value or index.

ChrisA
_______________________________________________
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/7LTKMLQFJHQYU2TGQCPYBXXX6472M3H7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to