Демихов Валентин, 611 группа MixNamespace 10257
Майоров Егор Андреевич, 527 группа MixNamespace 11108
n1class Mix:n1class Mixed:
22
3    def __init__(self, **kwargs):3    def __init__(self, **kwargs):
4        self.__dict__.update(kwargs)4        self.__dict__.update(kwargs)
55
6    def __str__(self):6    def __str__(self):
n7        return ', '.join((f'{key}={value}' for key, value in sorted(selfn7        return ', '.join((f'{key}={val}' for key, val in sorted(self.__d
>.__dict__.items())))>ict__.items())))
88
9def mix(*args):9def mix(*args):
t10    comb = {}t10    res = {}
11    for a in args:11    for arg in args:
12        for c in dir(a):12        for key in dir(arg):
13            if not c.startswith('_') and (not callable(getattr(a, c))):13            if not key.startswith('_') and (not callable(getattr(argke
 >y))):
14                comb[c] = getattr(a, c)14                res[key] = getattr(argkey)
15    return Mix(**comb)15    return Mixed(**res)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op