On Mon, 11 Apr 2022 at 06:48, Ethan Furman <et...@stoneleaf.us> wrote: > > On 4/10/22 10:17, Chris Angelico wrote: > > On Mon, 11 Apr 2022 at 02:59, Christopher Barker wrote: > > >> But if I did that, then one lib registering my units with the global > >> repository might break some other lib's use of the global repository. > > > > Then... libraries should not register units unless it's at the behest > > of the application? That's exactly what I've been saying. > > If the library cannot register its version of units, how can it use units > internally? >
Probably the same way that it's always been possible - with clunkier syntax and explicit multiplications. I'm not sure. Do you actually have a use-case where a library needs to do unit-aware arithmetic independently of the application, or is this purely hypothetical? 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/MMYW3OATP4QSRBHBI2XN5PVQLZ2U247G/ Code of Conduct: http://python.org/psf/codeofconduct/