3 ms·
I think the motivation there historically was to encourage use of generators and generator expressions — it’s definitely intentional, because things like `apply
by goodside 5y ago
I think the motivation there historically was to encourage use of generators and generator expressions — it’s definitely intentional, because things like `apply` and `reduce` used to be builtins but now they’re imports.
If you reach for itertools imports often in an interactive REPL, you might be interested in Pyflyby: https://labs.quansight.org/blog/2021/07/pyflyby-improving-efficiency-of-jupyter-interactive-sessions/ https://labs.quansight.org/blog/2021/07/pyflyby-improving-ef...