SDL_HINT_WHATEVER constants are defined like:
SDL_HINT_VIDEO_X11_XVIDMODE = b"SDL_VIDEO_X11_XVIDMODE"
However, the function wrappers insist on the parameters being of type 'str':
if type(name) is not str:
raise TypeError("name must be a string")
while this works on python 2.7 where str == bytes, it breaks completely on
python 3+. I'm not really sure what is the best way here, remove 'b' from
constants, or do something like in the patch attached.
Original issue reported on code.google.com by llxxn...@gmail.com on 17 Nov 2012 at 3:28
Original issue reported on code.google.com by
llxxn...@gmail.com
on 17 Nov 2012 at 3:28Attachments: