Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r87352:0d9dacbd997f
Date: 2016-09-23 23:05 +0200
http://bitbucket.org/pypy/pypy/changeset/0d9dacbd997f/

Log:    Better override _compute_value() than get_w_value(): the latter is
        otherwise not overridden, and the former is already highly
        polymorphic

diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -374,11 +374,8 @@
         self._value = value
         self.setup(w_type)
 
-    def get_w_value(self, space):
-        w_value = self._w_value
-        if w_value is None:
-            self._w_value = w_value = space.wrap(self._value)
-        return w_value
+    def _compute_value(self, space):
+        return self._value
 
 @specialize.memo()
 def get_operr_class(valuefmt):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to