-
-
Save jstacoder/cce26e4426b90ee254bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask('__name__') | |
@app.route('/') | |
def index(): | |
return 'Hello World!' | |
app.run() | |
# VS | |
(lambda flask: | |
(lambda app: | |
(app, | |
app.route('/')( | |
lambda: 'Hello World!' | |
) | |
)[0] | |
)(flask.Flask('__name__')).run() | |
)(__import__('flask')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment