Commits

Jason Chu  committed a8f6d6b

Add unwrap function to W_SmallLongObject

  • Participants
  • Parent commits 1df6007
  • Branches py3k-marshal

Comments (0)

Files changed (1)

File pypy/objspace/std/smalllongobject.py

     def asbigint(w_self):
         return rbigint.fromrarith_int(w_self.longlong)
 
+    def longlongval(self):
+        return self.longlong
+
+    def unwrap(w_self, space): #YYYYYY
+        return w_self.longlongval()
+
     def __repr__(w_self):
         return '<W_SmallLongObject(%d)>' % w_self.longlong