Closed ell1e closed 1 year ago
Ah, I guess I am supposed to use _ctypes
now. You should add in _funcs = _ctypes
with maybe some hack that prints out a deprecation warning, maybe. These things just changing is really confusing and also makes it hard to support multiple library versions cleanly.
Edit: also my apologies for being grumpy. I've just been at this point with PySDL2 about 4 times and it gets a little old at some point.
Hi @ell1e, apologies for breaking the workaround you were using! As you can see in the release notes for PySDL2 0.9.12, I've made sdl2._ctypes
an official and stable part of the API specifically for your use-case, so hopefully you shouldn't have any other problems with this going forward.
What doesn't work? This used to work:
Now it no longer does. Also, the new
_funcdefs
is a list? How would I be expected to get it out of there? I'm a little confused, and my pile of try/excepts for multiple library versions is starting to get a bit long too.How To Reproduce See above.
Platform (if relevant):
Additional context