P
Причём, решением от 2017.11.16, то есть раньше, чем решение суда о блокировке Telegram. Просто до блокировки Telegram, блокировка веб-версии не применялась.
Запись в реестре выглядит так: https://web.telegram.org/#/im?p=@fonbetbot
Size: a a a
P
MK
ТЭ
ТЭ
Н
MK
MK
СС
decos = {
'id': lambda x: x,
}
@decos['id']
def f(): pass
# SyntaxError: invalid syntax
decos = {
'id': lambda x: x,
}
@decos['id']
def f(): pass
f
# <function f at ...>
class D:
f = None
def __init__(self, name):
self.name = name
def __call__(self, *args, **kwargs):
# on the first call save the function
if self.f is None:
self.f = args[0]
return self
# on all the next calls call the function
print(f'hello from {self.name}!')
return self.f(*args, **kwargs)
# matrix multiplication logic
def __matmul__(self, other):
return lambda f: self(other(f))
# the second `@` is actually the matrix multiplication
@D('a') @D('b')
def f(): pass
f()
# hello from a!
# hello from b!
_ = lambda x: x
@_(D('a') @ D('b'))
def f(): pass
IS
decos = {
'id': lambda x: x,
}
@decos['id']
def f(): pass
# SyntaxError: invalid syntax
decos = {
'id': lambda x: x,
}
@decos['id']
def f(): pass
f
# <function f at ...>
class D:
f = None
def __init__(self, name):
self.name = name
def __call__(self, *args, **kwargs):
# on the first call save the function
if self.f is None:
self.f = args[0]
return self
# on all the next calls call the function
print(f'hello from {self.name}!')
return self.f(*args, **kwargs)
# matrix multiplication logic
def __matmul__(self, other):
return lambda f: self(other(f))
# the second `@` is actually the matrix multiplication
@D('a') @D('b')
def f(): pass
f()
# hello from a!
# hello from b!
_ = lambda x: x
@_(D('a') @ D('b'))
def f(): pass