Author: Ronan Lamy <[email protected]>
Branch: kill-flowobjspace
Changeset: r60551:a0ef0f4b0dbc
Date: 2013-01-27 18:47 +0000
http://bitbucket.org/pypy/pypy/changeset/a0ef0f4b0dbc/
Log: CallSpec: inline a bit
diff --git a/rpython/flowspace/argument.py b/rpython/flowspace/argument.py
--- a/rpython/flowspace/argument.py
+++ b/rpython/flowspace/argument.py
@@ -397,14 +397,11 @@
def combine_if_necessary(self):
if self.combine_has_happened:
return
- self._combine_wrapped(self.w_stararg)
+ if self.w_stararg is not None:
+ args_w = self.space.unpackiterable(self.w_stararg)
+ self.arguments_w = self.arguments_w + args_w
self.combine_has_happened = True
- def _combine_wrapped(self, w_stararg):
- "unpack the *arg and **kwd into arguments_w and keywords_w"
- if w_stararg is not None:
- self._combine_starargs_wrapped(w_stararg)
-
def _rawshape(self, nextra=0):
assert not self.combine_has_happened
shape_cnt = len(self.arguments_w)+nextra # Number of
positional args
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit