(no title)
hyperion2010 | 1 year ago
If this pep were implemented I suspect it would result in forcing thousands of not tens of thousands of people to spend hours modifying perfectly working code and destroying the ability to run old scientific code without modification. Extremely effective industrial sabotage if it were to be accepted.
It is hard for me to articulate how much peps like this reinforce my desire to never start another python project. Even if this pep is rejected the fact that there are people who would put in the time and effort to write and submit such a PEP tells me that they will do it again, and eventually they might succeed.
discretion22|1 year ago
I completely understand this sentiment. Recent python events have made me wonder if there are some people intent on sabotaging the management of the language.
I loved the incremental improvements and thoughtful process involved up until a couple of years ago but it feels like python will become brittle and break badly if things continue the way they are. It feels like the adults have been driven out the room when it comes to stewardship. I'm not sure how recoverable the situation is.
nightpool|1 year ago
Narhem|1 year ago
The reason I pick up Python for projects is because it grows with the application; opportunities to add typing etc. Who knows maybe in a few years Python will enforce all the types and it will be as verbose as Java. Personally I’d like to see how they handle declaring a method or function throws exceptions.
Pretty narly we have compiled Python apps with poetry, it’s starting to punch out of its weight class.
diggan|1 year ago
If the change goes through, couldn't you just use older Python versions for those specific projects, or has the Python ecosystem still not figured out how to do this without huge hassles?
hamandcheese|1 year ago
yunohn|1 year ago
TBH that kind of code barely survives minor Python version upgrades in my experience.
northernman|1 year ago
plesner|1 year ago
How do people land on the python steering council exactly?
dpwm|1 year ago
> A tool will be provided to automatically update code to replace bare except: with except BaseException:.
arp242|1 year ago
I have sometimes not run a Python script for a few years, and then when I need it, it stopped working and I need to track down what changed/broke or run some tool or whatnot. I don't keep track of the latest greatest Python changes – like most Python programmers it's not my "day job" to write Python code so I now need to track what changed between "the Python version I used about 3 years ago, whatever that was" and now. It's pretty annoying.
And that's assuming said tool will be fool-proof. Never mind of course that all my dependencies (if any) will need updating too.
What will happen in practice is that people will write "except Exception:" rather than "except:" and do nothing different. Basically nothing will change.
Meanwhile, I have C and Go programs that have worked without modification for about 10 years. Not that nothing ever breaks in C or Go, but it's the exception (hah!) rather than the rule.
mannykannot|1 year ago
I propose a rider to the PEP in which implementation will be deferred until its proponents can correctly affirm that the library reference lists, for each function and method, every exception it might throw.
hawski|1 year ago
I know it is not nearly on the same level, but people seriously overestimate the effort needed between not doing anything at all and even the slightest work, no matter how reliable and easy. The difference between nothing and anything is huge.
instig007|1 year ago
Joker_vD|1 year ago
shadowgovt|1 year ago
kstrauser|1 year ago
Like, I don’t know if there’s a PEP to use braces, but it wouldn’t surprise me if someone had made one so that from then on there’d be an official doc you could point people at when they ask about it.
Not saying this is one of those, and I see Brett Cannon’s on this one. I am saying not to get too worked up over the existence of a draft PEP.
zahlman|1 year ago
The rejection of braces isn't in a PEP to my knowledge; it's only in the __future__ Easter egg.
setopt|1 year ago
linsomniac|1 year ago
dataflow|1 year ago
Caught and not re-raised
cortesoft|1 year ago
a-french-anon|1 year ago
instig007|1 year ago
Joker_vD|1 year ago
shadowgovt|1 year ago
himinlomax|1 year ago
unknown|1 year ago
[deleted]
sdenton4|1 year ago
On the other hand, I completely agree that it's not worth a breaking change.
relaxing|1 year ago