Skip to content

Instantly share code, notes, and snippets.

@rail
Created April 8, 2013 01:11
Show Gist options
  • Save rail/5333459 to your computer and use it in GitHub Desktop.
Save rail/5333459 to your computer and use it in GitHub Desktop.
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