piston/packages/python/3.10.0a7/test.py
2021-04-12 11:28:36 +05:30

18 lines
224 B
Python

execute = (execute_with := lambda *a, **k: lambda f: f(*a, **k))()
@int
@execute
class n: __int__ = lambda _: 69
@execute
class cout: __lshift__ = print
@execute_with(n)
def output(n):
return "OK"
cout << output