开发者

Why can I not import the Python module 'signal' using Jython, in Linux?

开发者 https://www.devze.com 2022-12-08 22:22 出处:网络
I开发者_如何学C can\'t find any reference to the \'signal\' class being left out in Jython. Using Jython 2.1.

I开发者_如何学C can't find any reference to the 'signal' class being left out in Jython. Using Jython 2.1.

Thanks


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消