Re: Python 3- strings or bytes interface

Greg Ewing <[email protected]> Fri, 06 Apr 2012 11:31:16 +1200
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Rob Reilink wrote:
> So we could add a 
> glGetUnicode or glGetStr or glGetPyStr (suggestions for appropriate name 
> welcome) that always returns a 'str' -- 8 bit on Py2 and unicode on Py3.

And have it take an optional encoding, defaulting to ascii.
Then people won't be stuck if they happen to encounter a
non-ascii glGetString result for some reason.

-- 
Greg

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net