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