Pickle module fail to load `IntConstant` with protocol 2

Bug #1270537 reported by ray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyopengl (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Python 2:

Python 2.7.6 (default, Nov 26 2013, 12:47:31)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GL import *
>>> import cPickle
>>> cPickle.loads(cPickle.dumps(GL_STATIC_DRAW))
GL_STATIC_DRAW
>>> cPickle.loads(cPickle.dumps(GL_STATIC_DRAW, -1))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __new__() takes exactly 3 arguments (2 given)

In Python 3:

Python 3.3.3 (default, Nov 26 2013, 13:47:45)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pickle
>>> from OpenGL.GL import *
>>> pickle.loads(pickle.dumps(GL_STATIC_DRAW))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __new__() missing 1 required positional argument: 'value'
>>> pickle.loads(pickle.dumps(GL_STATIC_DRAW, 0))
GL_STATIC_DRAW

ray (ray040123)
summary: - Pickle module fail to load `IntConstant` with protocal 2
+ Pickle module fail to load `IntConstant` with protocol 2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.