【发布时间】:2013-10-24 09:21:03
【问题描述】:
我将 Python3 解释器嵌入到 Cocoa 应用程序中。 我的应用需要多个独立的 Python 执行上下文,因此我需要生成多个解释器。
Python3 手册提供了至少两种生成执行上下文的方法。
PyInterpreterState_NewPy_NewInterpreter
它们是什么,我应该使用哪个来创建完全分离的 python 上下文? (类似于系统进程)
【问题讨论】:
标签: python-3.x python-embedding