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?)
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.