On Sat, Apr 09, 2022 at 02:52:50AM +1000, Chris Angelico wrote:

> We aren't bothered by the fact that os.chdir()
> is global, we just accept that it belongs to the application, not a
> library.

You might not be, but those of us who use it, or *would* use it if it 
wasn't so dangerous, think differently.

In any case, the idea that *units of measurement* (of which there are 
over 3000 in the "units" program, and an unbounded number of 
combinations of such) are in any way comparible to the single "current 
working directory" is foolish.

Units are *values* that are used in calculations, not application wide 
settings. The idea that libraries shouldn't use their own units is as 
silly as the idea that libraries shouldn't use their own variables.

Units are not classes, but they are sort of like them. You wouldn't 
insist on a single, interpreter wide database of classes, or claim that 
"libraries shouldn't create their own classes".


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

Reply via email to