pkg(python-3.10.0a7): More pythonic 3.10.0a7 code

This commit is contained in:
Shivansh-007 2021-04-12 11:56:26 +05:30
parent 17f4af32fd
commit 262ba44696

View file

@ -1,18 +1,7 @@
execute = (execute_with := lambda *a, **k: lambda f: f(*a, **k))()
working = True
@int
@execute
class n: __int__ = lambda _: 69
@execute
class cout: __lshift__ = print
@execute_with(n)
def output(n):
return "OK"
cout << output
match working:
case True:
print("OK")
case False:
print()