Let me know if you have any ideas for what I should make in one line next :)
I only had to get over two problems that I hadn't yet encountered when working on this:
this
@app.route('/') def index(): return whatever
can be re-written as
index = app.route('/')(lambda : whatever)
My reaction to the code: https://repl.it/@DSAEvan/wdym-confusion#index.html
@DSAEvan hehe
live chatroom one liner! (1 line series)[no5]
You can literally make anything in one line ;)
Here is my one line flask py live chatroom!
Live chat here
Let me know if you have any ideas for what I should make in one line next :)
Explanation:
I only had to get over two problems that I hadn't yet encountered when working on this:
as you (probably) already know, with py flask you use decorators when routing - for example:
this
can be re-written as
My reaction to the code: https://repl.it/@DSAEvan/wdym-confusion#index.html
@DSAEvan hehe