>>> from SDL import * >>> SDL_Init(SDL_INIT_JOYSTICK) 0 >>> j = SDL_JoystickOpen(0) >>> type(j), repr(j) (, '136390160') >>> SDL_JoystickIndex(j) Traceback (most recent call last): File "", line 1, in ? File "/home/pete/src/ctypes-soc/SDL/dll.py", line 196, in _f return func(*args, **kwargs) ctypes.ArgumentError: argument 1: exceptions.TypeError: wrong type