问题描述
您好。我想知道是否有人知道在子进程模块中命名
Popen类的原理。对于创建子进程的函数,Popen听起来像是一个合适的
名称,但是对象本身是一个子进程,而不是popen。似乎只需命名类Subprocess就可以更准确了,有人可以解释为什么这不是
的情况吗?
谢谢。
Hi. I wondered if anyone knew the rationale behind the naming of the
Popen class in the subprocess module. Popen sounds like the a suitable
name for a function that created a subprocess, but the object itself is
a subprocess, not a "popen". It seems that it would be more accurate to
just name the class Subprocess, can anyone explain why this is not the
case?
Thank you.
推荐答案
我不知道 - 但我同意,Subprocess本来就是一个更好的名字。
-
Gabriel Genellina
I have no idea - but I agree, Subprocess would have been a better name.
--
Gabriel Genellina
我不知道 - 但我同意,Subprocess本来就是一个更好的名字。
-
Gabriel Genellina
I have no idea - but I agree, Subprocess would have been a better name.
--
Gabriel Genellina
Python类是标准Posix函数的推广,
(几乎)同名:
干杯,
Nicola Musatti
The Python class is a generalization of the standard Posix function of
(almost) the same name: http://opengroup.org/onlinepubs/0079...xsh/popen.html
Cheers,
Nicola Musatti
这篇关于询问subprocess.Popen类的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!