Philip Jenvey avatar Philip Jenvey committed 261e5f9

some w_self -> self

Comments (0)

Files changed (3)


     from pypy.objspace.std.complextype import complex_typedef as typedef
     _immutable_fields_ = ['realval', 'imagval']
-    def __init__(w_self, realval=0.0, imgval=0.0):
-        w_self.realval = float(realval)
-        w_self.imagval = float(imgval)
+    def __init__(self, realval=0.0, imgval=0.0):
+        self.realval = float(realval)
+        self.imagval = float(imgval)
-    def unwrap(w_self, space):   # for tests only
-        return complex(w_self.realval, w_self.imagval)
+    def unwrap(self, space):   # for tests only
+        return complex(self.realval, self.imagval)
-    def __repr__(w_self):
+    def __repr__(self):
         """ representation for debugging purposes """
-        return "<W_ComplexObject(%f,%f)>" % (w_self.realval, w_self.imagval)
+        return "<W_ComplexObject(%f,%f)>" % (self.realval, self.imagval)
     def as_tuple(self):
         return (self.realval, self.imagval)


     typedef = float_typedef
-    def __init__(w_self, floatval):
-        w_self.floatval = floatval
+    def __init__(self, floatval):
+        self.floatval = floatval
-    def unwrap(w_self, space):
-        return w_self.floatval
+    def unwrap(self, space):
+        return self.floatval
     def float_w(self, space):
         return self.floatval


     from pypy.objspace.std.longtype import long_typedef as typedef
     _immutable_fields_ = ['longlong']
-    def __init__(w_self, value):
+    def __init__(self, value):
         assert isinstance(value, r_longlong)
-        w_self.longlong = value
+        self.longlong = value
     def fromint(value):
     def frombigint(bigint):
         return W_SmallLongObject(bigint.tolonglong())
-    def asbigint(w_self):
-        return rbigint.fromrarith_int(w_self.longlong)
+    def asbigint(self):
+        return rbigint.fromrarith_int(self.longlong)
     def longval(self):
         return self.longlong
-    def __repr__(w_self):
-        return '<W_SmallLongObject(%d)>' % w_self.longlong
+    def __repr__(self):
+        return '<W_SmallLongObject(%d)>' % self.longlong
-    def int_w(w_self, space):
-        a = w_self.longlong
+    def int_w(self, space):
+        a = self.longlong
         b = intmask(a)
         if b == a:
             return b
             raise OperationError(space.w_OverflowError, space.wrap(
                 "long int too large to convert to int"))
-    def uint_w(w_self, space):
-        a = w_self.longlong
+    def uint_w(self, space):
+        a = self.longlong
         if a < 0:
             raise OperationError(space.w_ValueError, space.wrap(
                 "cannot convert negative integer to unsigned int"))
             raise OperationError(space.w_OverflowError, space.wrap(
                 "long int too large to convert to unsigned int"))
-    def bigint_w(w_self, space):
-        return w_self.asbigint()
+    def bigint_w(self, space):
+        return self.asbigint()
     def float_w(self, space):
         return float(self.longlong)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.