Created
April 8, 2013 01:11
-
-
Save rail/5333459 to your computer and use it in GitHub Desktop.
This file contains 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