2 ms·
If you really want though, you can write a web server in a single python lambda: (lambda flask: (lambda app: (app, app.rout
by tda 6y ago
If you really want though, you can write a web server in a single python lambda:
(lambda flask:
(lambda app:
(app,
app.route('/')(
lambda: 'Hello World!'
)
)[0]
)(flask.Flask('__name__')).run()
)(__import__('flask'))
See https://gist.github.com/e000/1023982 https://gist.github.com/e000/1023982 for more horrible examples
- heavyset_go 6y agoI hate it, but it is clever.