Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#252 glutInit broken on python3 for no args

v3.0.0
open
GLUT (25)
5
2012-06-21
2012-06-21
Tom Palmer
No

The following code passes a unicode str for no args for python3:

args = [as_8_bit(x) for x in args]
if not count:
count, args = 1, ['foo']

It might ought to say the following:

if not count:
count, args = 1, ['foo']
args = [as_8_bit(x) for x in args]

Just try calling glutInit() on python3 to cause the problem.

Discussion