_subprocess模块

iTa*_*ayb 3 python subprocess

_subprocess该问题所示,有一个名为的模块.

我能够导入它,但我没有找到任何关于它是什么以及它与它有何不同的文档subprocess.

这里的任何人都知道这个模块的作用吗?

Dou*_*gal 5

_subprocess似乎是Windows特定的C扩展模块,它实现了subprocess模块正确使用的一些功能.如果你查看源代码subprocess,_subprocess只会引用if mswindows块内部.

这是实现的细节,所以你绝对不应该在任何实际的代码中使用它(当然,一些好奇心从来都不是坏事).

这是`_subprocess'的来源.顶部的评论说

* support routines for subprocess module
*
* Currently, this extension module is only required when using the
* subprocess module on Windows, but in the future, stubs for other
* platforms might be added here as well.
Run Code Online (Sandbox Code Playgroud)