Recurrently, files are referenced when calling subprocesses. Just recently, I wanted to execute a C program to efficiently process an image and, what I had in my program, was a Path. This idea would allow turning this (imports ommitted):
`Popen(('/path/to/program', '-o', fspath(outputPath), fspath(inputPath)` Into this: `Popen(('/path/to/program', '-o', outputPath, inputPath` I believe the 2nd one is more readable and easier to use than the first one. This idea can also be expanded into allowing a Path as the executable. This change is supposed to affect all the convenient functions that end up calling Popen in their pipeline. When str are provided, no changes should happen. Any problems/ideas/comments? _______________________________________________ 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/NUAMZZBZSZ627WNGE6R6XRLCABMEJKNT/ Code of Conduct: http://python.org/psf/codeofconduct/