Python3 上的 Twistd 可执行文件
Twistd executable on Python3
我有一个 Twisted 守护程序应用程序,它在 Python 2 上使用 twistd 时不会出现任何问题。但是,我也想支持 Python3,尽管我的所有代码都可以工作,但似乎 python 3 的 Twisted 版本中不存在 twistd 可执行文件(显然是 twisted.scripts
不包括包装)。有没有人找到解决方法?当然,我可以 运行 我的守护进程没有 twistd,但这会使任务变得有点复杂,我认为这也是一种优雅的方式。
提前致谢!
目前只有 Twisted 的某些部分移植到 Python 3,我认为 twisted.scripts
包还不可用。
您可以找到描述当前移植模块的 here status of this ongoing work, and the Porting to Python 3 documentation page links to the twisted.python.dist3 模块。
我有一个 Twisted 守护程序应用程序,它在 Python 2 上使用 twistd 时不会出现任何问题。但是,我也想支持 Python3,尽管我的所有代码都可以工作,但似乎 python 3 的 Twisted 版本中不存在 twistd 可执行文件(显然是 twisted.scripts
不包括包装)。有没有人找到解决方法?当然,我可以 运行 我的守护进程没有 twistd,但这会使任务变得有点复杂,我认为这也是一种优雅的方式。
提前致谢!
目前只有 Twisted 的某些部分移植到 Python 3,我认为 twisted.scripts
包还不可用。
您可以找到描述当前移植模块的 here status of this ongoing work, and the Porting to Python 3 documentation page links to the twisted.python.dist3 模块。