>>> test_int_kwargs(h)
Traceback (most recent call last):
TypeError: h() keywords must be strings
+
+ >>> d()
+ Traceback (most recent call last):
+ TypeError: d() takes at least 1 positional argument (0 given)
+ >>> d(1)
+ 1 1 0 0
+ >>> d(1,2)
+ 1 2 0 0
+ >>> d(1,2,3)
+ 1 2 1 0
"""
+def d(a, b=1, *args, **kwds):
+ print a, b, len(args), len(kwds)
+
def e(*args, **kwargs):
print len(args), len(kwargs)
def h(a, b, c, *args, **kwargs):
print a, b, c, u'*', len(args), len(kwargs)
-
+
args = (9,8,7)
import sys