4 ms·
Maybe I value cross-platform too highly, but I don't see the use of this post... Am I missing something? The claim is that there should be only one way to do it
by webnrrd2k 3y ago
Maybe I value cross-platform too highly, but I don't see the use of this post... Am I missing something? The claim is that there should be only one way to do it in Python. But then goes on to describe a way that doesn't even work on a major platform.
I've worked on a project recently, a rough prototype, that executes a vast amount of commands via subprocess[1]. I've been very happy with the results of subprocess.popen(). It works well on Linux, Macs, and windows with minimal tweaking.
[1] https://docs.python.org/3/library/subprocess.html https://docs.python.org/3/library/subprocess.html
- BugsJustFindMe 3y ago> The claim is that there should be only one way to do it in Python. Python developers and failing to adhere to this part of the Zen of Python. Name a more iconic duo.