Author: Ronan Lamy <[email protected]>
Branch: kill-flowobjspace
Changeset: r60573:5398a4125bb7
Date: 2013-01-28 03:09 +0000
http://bitbucket.org/pypy/pypy/changeset/5398a4125bb7/

Log:    make CallSpec independent of ArgumentsForTranslation

diff --git a/rpython/flowspace/argument.py b/rpython/flowspace/argument.py
--- a/rpython/flowspace/argument.py
+++ b/rpython/flowspace/argument.py
@@ -374,7 +374,7 @@
     return args._rawshape(nextra)
 
 
-class CallSpec(ArgumentsForTranslation):
+class CallSpec(object):
     """Represents the arguments passed into a function call, i.e. the
     `a, b, *c, **d` part in `return func(a, b, *c, **d)`.
     """
@@ -388,9 +388,6 @@
         self.arguments_w = args_w
         self.keywords = keywords or {}
 
-    def copy(self):
-        return self
-
     def unpack(self):
         "Return a ([w1,w2...], {'kw':w3...}) pair."
         if self.w_stararg is not None:
@@ -400,9 +397,6 @@
             args_w = self.arguments_w
         return args_w, self.keywords
 
-    def combine_if_necessary(self):
-        raise NotImplementedError
-
     def flatten(self):
         """ Argument <-> list of w_objects together with "shape" information 
"""
         shape_cnt  = len(self.arguments_w)    # Number of positional args
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to