3 ms·
I also spend way to long looking at the `UnitRegister()` and `ureg` class and object names. I'm not a fan of either. To the point where I'm wondering about the
by wodenokoto 5y ago
I also spend way to long looking at the `UnitRegister()` and `ureg` class and object names.
I'm not a fan of either. To the point where I'm wondering about the feasibility of having the API work like:
from pint.default import meter, cm
length = 3 * meter + 4 * cm
- kzrdude 5y agofrom pint.units import meter, cm :) Or whatever you fancy! I'm just someone in the comment section after all.