Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r58231:3c83368be10b
Date: 2012-10-18 19:48 +0100
http://bitbucket.org/pypy/pypy/changeset/3c83368be10b/
Log: Inline _parse()
diff --git a/pypy/objspace/flow/argument.py b/pypy/objspace/flow/argument.py
--- a/pypy/objspace/flow/argument.py
+++ b/pypy/objspace/flow/argument.py
@@ -188,16 +188,6 @@
### Parsing for function calls ###
- def _parse(self, w_firstarg, signature, defaults_w, blindargs=0):
- """Parse args and kwargs according to the signature of a code object,
- or raise an ArgErr in case of failure.
- """
- scopelen = signature.scope_length()
- scope_w = [None] * scopelen
- self._match_signature(w_firstarg, scope_w, signature, defaults_w,
- blindargs)
- return scope_w
-
@staticmethod
def frompacked(space, w_args=None, w_kwds=None):
"""Convenience static method to build an Arguments
@@ -474,7 +464,10 @@
"""Parse args and kwargs according to the signature of a code object,
or raise an ArgErr in case of failure.
"""
- return self._parse(None, signature, defaults_w)
+ scopelen = signature.scope_length()
+ scope_w = [None] * scopelen
+ self._match_signature(None, scope_w, signature, defaults_w, 0)
+ return scope_w
def unmatch_signature(self, signature, data_w):
"""kind of inverse of match_signature"""
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit