Using ctypes with jython

后端 未结 4 1657
梦如初夏
梦如初夏 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:45

    ctypes is not supported in Jython 2.5.1. There has been some experimental support added in 2.5.2, but it's certainly nowhere near complete. Maybe you'll have better luck using JNA with Jython instead. There's a short tutorial here.

提交回复
热议问题