为什么我无法导入Python模块“signal”?在 Linux 中使用 Jython?

发布于 2024-08-08 17:02:20 字数 60 浏览 2 评论 0原文

我找不到任何对 Jython 中遗漏的“信号”类的引用。使用 Jython 2.1。

谢谢

I can't find any reference to the 'signal' class being left out in Jython. Using Jython 2.1.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戈亓 2024-08-15 17:02:20

我认为 Unix 风格的信号很难在 JVM 上实现,因为 JVM 没有信号的概念,并且可能需要一些 JNI 魔法才能使其工作。

在 Jython 2.5 中,该模块存在,但对于大多数函数似乎都会抛出 NotImplementedError

I would imagine Unix-style signals are difficult to do on the JVM, since the JVM has no notion of signals, and it is likely some JNI magic would be required to get this to work.

In Jython 2.5, the module exists, but seems to throw NotImplementedError for most functions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文