News for hackers. Stuff that matters.
Re:Introduction to Python for Computational Science and Engi... by _coldfire on Friday November 25, 2016 @02:35PM (#13039261)
Reduce is easy to fix also, but that ignores the entire reasoning for it being removed and only serves to highlight the massive chasm between 2 and 3.

The clean break of 3 and the sanity it brings to the language is undeniable.

Re:Introduction to Python for Computational Science and Engi... by I_deny_it on Friday November 25, 2016 @11:05PM (#13041659)
> The clean break of 3 and the sanity it brings to the language is undeniable.

Well, I can't deny they broke it, but sanity is pretty deniable. Python has always been a dynamic language, and one of the core mantras was "there should be one obvious way to do it" (in contrast to Perl). All the new type annotation stuff and the multiple ways to handle string formatting are steps in very weird directions. Maybe they should make a Python version 4 to clean some of that mess up.

Re:Introduction to Python for Computational Science and Engi... by _coldfire on Saturday November 26, 2016 @12:03AM (#13041817)
>new type annotation stuff

xrange is now range?

>multiple ways to handle string formatting

This is a problem?

As for sanity: bytes/unicode integer division chained exceptions os.scandir performance

I'm keen for 4 when it comes. Clinging to the past is only going to make things harder.

Re:Introduction to Python for Computational Science and Engi... by I_deny_it on Saturday November 26, 2016 @02:56AM (#13042405)
>> multiple ways to handle string formatting > This is a problem?

Yes, if you think, "There should be one-- and preferably only one --obvious way to do it."

Re:Introduction to Python for Computational Science and Engi... by reachtarunhere on Saturday November 26, 2016 @07:52AM (#13043263)
That would put us in the league of JS folks. New JS every year (month?)
Re:Introduction to Python for Computational Science and Engi... by xapata on Saturday November 26, 2016 @01:06AM (#13041994)
Why do you think `reduce` was moved to functools?

As far as I know, it was simply because few people used it correctly and Guido thought it would help to tuck it out of the way in a module. That doesn't feel like a massive chasm to me. Most of the 2/3 moves and renames were cosmetic.