Author: Anton Gulenko <[email protected]>
Branch: storage
Changeset: r779:26fa4b669836
Date: 2014-04-07 15:17 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/26fa4b669836/
Log: Fixed an assert that was always True before, due to the surrounding
parantheses (evaluating to a tuple).
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -110,8 +110,7 @@
s_frame.push(w_result)
else:
len_unwrap_spec = len(unwrap_spec)
- assert (len_unwrap_spec == len(inspect.getargspec(func)[0]) + 1,
- "wrong number of arguments")
+ assert (len_unwrap_spec + 2 == len(inspect.getargspec(func)[0])),
"wrong number of arguments"
unrolling_unwrap_spec = unrolling_iterable(enumerate(unwrap_spec))
def wrapped(interp, s_frame, argument_count_m1, w_method=None):
argument_count = argument_count_m1 + 1 # to account for the
rcvr
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit