News for hackers. Stuff that matters.
Re:Python to Scheme to Assembly (2014) by _callcc on Tuesday March 24, 2015 @12:34AM (#9254915)
This was the worst thing about switching to Python 3. `map` and `filter` are annoyingly "lazy" and `reduce` is basically shunned.

I wonder if the real reason this was changed was to discourage the use of `map` and `filter`... wrapping them each time with `list` is a pain in the ass and hurts readability.

And it breaks code in hard to anticipate places if you don't.

First thing I do when starting something is change them back in global scope. If I want a generator, I'll write one...

Down with PEP 8!

Re:Python to Scheme to Assembly (2014) by cbsw on Tuesday March 24, 2015 @06:18AM (#9255698)
I don't think "lazy" is a problem in real code. They just annoys when in interactive shell which you just want to print their result. In fact python3 has changed a lot of list like data type or function to "lazy", zip(),dict.items() etc. IMO this helps a lot to reduce memory usage. Thus more efficient with functional programming
Re:Python to Scheme to Assembly (2014) by mkesper on Tuesday March 24, 2015 @05:03AM (#9255507)
I think Guido makde it very clear he does not favour any use of map/reduce.