The Case Against Python 3
141–150 of 281 posts
Re: The Case Against Python 3
#142Earlier quoted context omitted.
> Let's hope python can be saved. Can you explain why Python would need to be saved? I mean every week on r/MachineLearning there is at least one new Python deep learning framework being launched[1], I wonder if you can mention any other language which is that healthy. [1] https://www.reddit.com/r/MachineLearning/search?sort=new&res...
All stable versions of the big ML frameworks are still 2.7.
Re: The Case Against Python 3
#143Zed's Rails article did lead to some improvements in the Ruby community (eg: The 'pickaxe' had meta-programming added to the next version). Zed likes to stir things up, but rather than dismiss him completely over some nit picky issues, eat the meat and spit out the bones.
To the "I stopped there" folks in this thread: why do you think Python 3 is still seeing such poor adoption?
Re: The Case Against Python 3
#144Earlier quoted context omitted.
In my experience a lot of the problems with automatically converting existing Python 2 code to Python 3 code is that the Python 2 code usually makes fundamentally broken assumptions when it comes to unicode and bytes.
This is what the author doesn't get- the fact that Python 2 makes no distinction between bytes-like objects and string-like objects is a bug , not a feature . He finds his code so awful to migrate because he has built it on a contrary assumption.
Re: The Case Against Python 3
#145This has to be the ne plus ultra of Python scaremongering. It describes some sort of bizzaro world of a doomed language which it populates with Machiavellian Python maintainers, brainwashed developers, and a small group of heroic holdouts who see resisting Python 3 as a moral imperative. Apparently having too many string formatting options is a moral issue (three, to be specific). As someone who writes a _lot_ of Pyt…
https://docs.python.org/3/tutorial/index.html
I found it really helpful.
Re: The Case Against Python 3
#146Earlier quoted context omitted.
Naw, `zip` is a builtin in py2. You might be thinking of `itertools.izip`? https://repl.it/E5v6/2
zip in py2 returns a tuple type (i.e tries to consumes the iterator through a StopIteration) in py3 it returns a iterator (consumes it on demand). Try this in py2: https://repl.it/E5vd/0
Re: The Case Against Python 3
#147Earlier quoted context omitted.
Node is an interpreter for the v8 JavaScript engine and it uses a language named JavaScript. There isn't a language named node :) I've done Python about as long as you but also like Golang for things Python is awful at.
Javascript is a colloquial name for what is formally known as ECMAScript. There isn't a language named JavaScript :)
Re: The Case Against Python 3
#148and most importantly the book Learn Python the Hard Way only supports python 2.
Re: The Case Against Python 3
#149Earlier quoted context omitted.
> THERE IS A HIGH PROBABILITY THAT PYTHON 3 IS SUCH A FAILURE IT WILL KILL PYTHON. I stopped there.
Isn't this what killed perl?
I am unsure when the idea of python3 (first as python 3000) came to general knowledge, but it must have been some time between 2000 and 2004. Then python3 was published in 2008.
So the time between obsoleting the old version, before the new version was available, was notably shorter with python.
Re: The Case Against Python 3
#150Earlier quoted context omitted.
A language must change, or it will be left behind, and become an esoteric toy. Even C has to deal with this. The only reason C is still popular is because of it's grandfathered status in so much of our infrastructure, and in many of the popular OS choices. A language that changes will alienate people, and lose people. Perl saw this. Python is seeing this. The way to guard against this is to keep backwards compatibili…
>I doubt the Scala community worries about exactly the same things. Why do you single out Scala as being particularly different to Python and Perl?