Author: Ronan Lamy <[email protected]>
Branch: no-class-specialize
Changeset: r80616:a63fa0ceb9a9
Date: 2015-11-09 18:48 +0000
http://bitbucket.org/pypy/pypy/changeset/a63fa0ceb9a9/

Log:    Remove obsolete references to ctr_location

diff --git a/pypy/module/marshal/interp_marshal.py 
b/pypy/module/marshal/interp_marshal.py
--- a/pypy/module/marshal/interp_marshal.py
+++ b/pypy/module/marshal/interp_marshal.py
@@ -156,9 +156,6 @@
     put_tuple_w(TYPE, tuple_w)  puts tuple_w, an unwrapped list of wrapped 
objects
     """
 
-    # _annspecialcase_ = "specialize:ctr_location" # polymorphic
-    # does not work with subclassing
-
     def __init__(self, space, writer, version):
         self.space = space
         ## self.put = putfunc
diff --git a/rpython/annotator/test/test_annrpython.py 
b/rpython/annotator/test/test_annrpython.py
--- a/rpython/annotator/test/test_annrpython.py
+++ b/rpython/annotator/test/test_annrpython.py
@@ -3244,22 +3244,6 @@
         a = self.RPythonAnnotator()
         py.test.raises(AnnotatorError, a.build_types, f, [])
 
-    def test_ctr_location(self):
-        class A:
-            _annspecialcase_ = 'specialize:ctr_location'
-            def __init__(self, x):
-                self.x = x
-
-        def f(n):
-            a = A(2 * n)
-            a.x = n
-            b = A("")
-            b.x = str(n)
-            return len(b.x) + a.x
-        a = self.RPythonAnnotator()
-        with py.test.raises(annmodel.AnnotatorError):
-            s = a.build_types(f, [int])
-
     def test_weakref(self):
         import weakref
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to