These changes make the gl3w_gen.py script run in both Python 2 (tested with 2.7.8) and Python 3 (tested with 3.4.2). Everything should also work in Python 2.6, according to the documentation.
Note: Some sources suggest using from __future__ import unicode_literals for string compatibility. I'm not sure which is better, but it might be worth investigating.
These changes make the gl3w_gen.py script run in both Python 2 (tested with 2.7.8) and Python 3 (tested with 3.4.2). Everything should also work in Python 2.6, according to the documentation.
Note: Some sources suggest using
from __future__ import unicode_literals
for string compatibility. I'm not sure which is better, but it might be worth investigating.