x.split( '.' )Is an idiom that shows up all over the place, particularly in list comprehensions. Run your code through 2to3 and it fails when x is a str (bytes) object, as 3.x thinks the '.' is unicode. It fails with a rather cryptic
TypeError: Type str doesn't support the buffer API error as it's apparently trying to convert '.' using the Py_Buffer protocol rather than up-converting x to unicode. The number of places this needs to be tracked down (I constantly sling strings around and there are lots of string literals around in the codebase) to continue porting PyOpenGL and OpenGLContext has put me into "meh" on the project for now.
Pingbacks are closed.