mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 22:16:26 +02:00
* pkg(python-3.9.4): Adds python 3.9.4 * pkg(python-3.10.0a7): Adds python 3.10.0a7 * pkg(python-3.10.0a7): More pythonic 3.10.0a7 code * pkg(python-3.10.0a7): Use semver versioning * pkg(python-3.10.0a7): remove 'py3' alias and add 'py' * pkg(python-3.9.4): remove 'py3' alias and add 'py'
18 lines
224 B
Python
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
|