Using ctypes with jython

后端 未结 4 1572
梦如初夏
梦如初夏 2021-01-19 12:27

I have a trouble with using ctypes lib in my python script. Here is my code (found on the Internet):

if __name__ == \"__main__\":
    from ctypes import *
           


        
4条回答
  •  一整个雨季
    2021-01-19 12:32

    Jython doesn't yet have full support for ctypes: http://bugs.jython.org/issue1328

    You can't simply take the ctypes library compiled for CPython, and plug it into Jython.

提交回复
热议问题