Юань Дунлян, 523 Группа DefArgs 15382
Алкисев Илья, 517 группа DefArgs 15197
f1def DefArgs(*decor_args):f1def DefArgs(*decor_args):
n2    nvodhowhfodbovbdsohoeshogbcoxbvosdhofbdbvkcxbkvnosdhgherohgkbcvkjxbncgvigdrbfgnvdsobvcxoicbgoerhgobdfovboasnfosbdofgb = len(decor_args)n2    k = len(decor_args)
33
4    def decorator(fun):4    def decorator(fun):
n5        cznxmvbkasgi = fun.__code__.co_argcountn5        n = fun.__code__.co_argcount
6        if nvodhowhfodbovbdsohoeshogbcoxbvosdhofbdbvkcxbkvnosdhgherohgkbcvkjxbncgvigdrbfgnvdsobvcxoicbgoerhgobdfovboasnfosbdofgb < cznxmvbkasgi:6        if k < n:
7            raise TypeError()7            raise TypeError()
88
n9        def wrapper(*args):n9        def wraper(*args):
10            vnosndvbondfobodhgoxncvkcnvjncxjnweopjgpoierhgnbncvbnodjgoherohdgbvcbsdohfowbreg = len(args)10            m = len(args)
11            if vnosndvbondfobodhgoxncvkcnvjncxjnweopjgpoierhgnbncvbnodjgoherohdgbvcbsdohfowbreg + nvodhowhfodbovbdsohoeshogbcoxbvosdhofbdbvkcxbkvnosdhgherohgkbcvkjxbncgvigdrbfgnvdsobvcxoicbgoerhgobdfovboasnfosbdofgb < cznxmvbkasgi or vnosndvbondfobodhgoxncvkcnvjncxjnweopjgpoierhgnbncvbnodjgoherohdgbvcbsdohfowbreg > cznxmvbkasgi:11            if m + k < n or m > n:
12                raise TypeError()12                raise TypeError()
n13            for vcnxmbnvksdhgoerhogrtbobhlxvcowehtoghr, xnvlsdrgprtjhotyjytpjptyjwbefwufvvcbxvw in zip(args, decor_args):n13            for x, y in zip(args, decor_args):
14                if not issubclass(type(vcnxmbnvksdhgoerhogrtbobhlxvcowehtoghr), type(xnvlsdrgprtjhotyjytpjptyjwbefwufvvcbxvw)):14                if not issubclass(type(x), type(y)):
15                    raise TypeError()15                    raise TypeError()
t16            return fun(*args, *decor_args[vnosndvbondfobodhgoxncvkcnvjncxjnweopjgpoierhgnbncvbnodjgoherohdgbvcbsdohfowbreg:cznxmvbkasgi])t16            return fun(*args, *decor_args[m:n])
17        return wrapper17        return wraper
18    return decorator18    return decorator
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op