5 ms·
One has to wonder why this is not included in the functools or some other module.
by Willyfrog 11y ago
One has to wonder why this is not included in the functools or some other module.
- icebraining 11y agoDunno, to promote generators? I'd say people often convert to list for no good reason, so adding friction might discourage that. Then again, map() and friends are not exactly the recommended way, list comprehensions and generator expressions are usually preferred by the BDFL.