> The context manager changes the entire process's WD for a section of > code. This makes sense, although it has its own consequences.
Actually, now that you say that— I think it makes my point: the fact that this context manager is necessary, and “has consequences” is because the working dir is global — not a good choice. The module-scope hammer does not fit every nail. Stop trying to hammer > in screws. I don’t know about anyone else, but I’m not arguing for module scope. I’m arguing against implicit global configuration. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ 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/FOPBF3DMN72JDJE2MMJI6WZT7KSV2JWM/ Code of Conduct: http://python.org/psf/codeofconduct/