What's Coming in Python 3.8
61–70 of 558 posts
Re: What's Coming in Python 3.8
#62Python looks more and more foreign with each release. I'm not sure what happened after 3.3 but it seems like the whole philosophy of "pythonic", emphasizing simplicity, readability and "only one straightforward way to do it" is rapidly disappearing.
I see what you're saying, but I kinda like the gets ":=" operator.
Re: What's Coming in Python 3.8
#63Gotta ask how many of these changes are actually reflective of changing environments. I could see with c++ that between 2003 and 2014 a fair few underlying machine things were changing and that needed addressing in the language. But Python is not quite as close to the machine, and I don't see how something like the walrus is helping much. If anything it seems like you'd scratch your head when you came across it. And…
My guess would be "run it and see what it does".
Re: What's Coming in Python 3.8
#64Earlier quoted context omitted.
Most code still look like traditional Python. Just like meta programming or monkey patching, the new features are used sparingly by the community. Even the less controversial type hints are here on maybe 10 percent of the code out there. It's all about the culture. And Python culture has been protecting us from abuses for 20 years, while allowing to have cool toys. Besides, in that release (and even the previous one)…
> Even the less controversial type hints are here on maybe 10 percent of the code out there. I think this metric is grossly overestimated. Or your scope for "out there" is considering some smaller subset of python code than what I'm imagining. I think the evolution of the language is a great thing and I like the idea of the type hints too. But I don't think most folks capitalize on this yet.
Of course, in a world of Python 2.7 still being a large code base and Python being used a lot for scripting, this will far from the truth for the entire ecosystem.
Re: What's Coming in Python 3.8
#65Earlier quoted context omitted.
“I've come up with a set of rules that describe our reactions to technologies: 1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works. 2. Anything that's invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. 3. Anything invented after you're thirty-five is against the n…
Does that mean someone born in 2008 will think C++ is simple and elegant?
Re: What's Coming in Python 3.8
#66Earlier quoted context omitted.
Disable it in pylintrc. Pylint is unusable without a good config file anyway.
Ideally the defaults should be sensible. I have found they mostly are, except the f-string one.
Re: What's Coming in Python 3.8
#67Re: What's Coming in Python 3.8
#68Earlier quoted context omitted.
It's not that common. There's 1 place where its useful imo (comprehensions to avoid duplicate calls), but even that can be handled case by case, and it certainly isn't a common thing.
Disagree. In my experience (albeit, not very long, been writing Python since 2007 or so), assigning to a value and checking for truthiness is a very common pattern.
Re: What's Coming in Python 3.8
#69Earlier quoted context omitted.
F-strings have appeared 2 versions ago. All in all, the feedback we have has been overwhelmingly positive, including on maintenance and readability.
...but every addition to make them more powerful and feature-rich is one more step in the direction of blurring the lines between what's code and what isn't, since more and more things that are supposed to be code will be expressed in ways that aren't code at all but fed to an interpreter inside the interpreter. And with every release, the language specification that I'm having to hold in my head when dealing with ot…
finished is dead, to put it less mildly.
Re: What's Coming in Python 3.8
#70You may continue working on the standard library, optimizing, etc. Just no new language features.
In my opinion, someone should be able to learn all of a language in a few days, including every corner case and oddity, and then understand any code.
If new language features get added over time, eventually you get to the case where there are obscure features everyone has to look up every time they use them.