3 ms·
Coming from lisp, I was looking for a "let" in python. Found a recent reddit discussion here: https://www.reddit.com/r/Python/comments/41yr58/let_statement_in_p
by hatmatrix 11y ago
Coming from lisp, I was looking for a "let" in python. Found a recent reddit discussion here: https://www.reddit.com/r/Python/comments/41yr58/let_statement_in_python_2014/ https://www.reddit.com/r/Python/comments/41yr58/let_statemen...
I especially find myself wishing for a let in these instances:
https://www.reddit.com/r/Python/comments/41yr58/let_statement_in_python_2014/cz6gpzc https://www.reddit.com/r/Python/comments/41yr58/let_statemen...
While the canonical answer is to assign to a local variable within a function, sometimes I abhor writing functions for such small tasks.