Most active commenters
  • pvg(4)
  • jessaustin(4)
  • coldtea(4)
  • sametmax(3)
  • jrochkind1(3)

←back to thread

2024 points randlet | 89 comments | | HN request time: 0.642s | source | bottom
Show context
bla2 ◴[] No.17515883[source]
> I don't ever want to have to fight so hard for a PEP and find that so many people despise my decisions.

Leading a large open source project must be terrible in this age of constant outrage :-(

replies(9): >>17515955 #>>17515972 #>>17516193 #>>17516427 #>>17516776 #>>17516884 #>>17517282 #>>17517716 #>>17517821 #
1. symmitchry ◴[] No.17515972[source]
I'm a little confused though, by his feelings here. Why did he feel the need to "fight so hard for a PEP" if it was so controversial, and everyone was outraged?

I do understand people's points about "the age of outrage" and "internet 2018" but still: the PEP wasn't generally accepted as being a fantastic improvement, so why did he feel the need to fight so hard for it?

replies(5): >>17516128 #>>17516129 #>>17516223 #>>17516774 #>>17519017 #
2. jnwatson ◴[] No.17516128[source]
It was controversial syntax, inline assignment-as-expression. There's always a tension between "keep it simple stupid" and "let's make it better", especially when a large user demographic of Python are non-professional-programmers.

Interestingly, C++ is going through the same process, with lots of great ideas being proposed, but the sum total of them being an even more complicated language (on top of what is probably the most complicated language already).

Python has been successful, IMHO, because Guido has made several brave, controversial calls. Python 3 breakage and async turned out to be prescient, fantastic decisions.

replies(6): >>17516204 #>>17516226 #>>17516681 #>>17517178 #>>17517212 #>>17533584 #
3. staticassertion ◴[] No.17516129[source]
Every feature ends up being controversial. Every discussion ends up devolving, somewhere, with some group, into bikeshedding.

Ultimately, it's up to certain stakeholders to hear arguments and make calls.

replies(1): >>17516424 #
4. sametmax ◴[] No.17516223[source]
That's the very point of a bdfl : it assumes he knows better than others. Debating is for insight and cortesy, not mandatory.
replies(2): >>17516307 #>>17518113 #
5. chimeracoder ◴[] No.17516226[source]
> Python 3 breakage and async turned out to be prescient, fantastic decisions.

The jury is still out on the Python 3 decision, to be honest. Heck, Python 2 is still officially supported until 2020.

Python 3 adoption is increasing, but the instability and breakage that it introduced caused a lot of knock-on effects throughout the Python community that held it back and hindered its adoption and mindshare. It'll take a while before we can really say whether the long-term gains will make up for that.

replies(4): >>17516673 #>>17516682 #>>17516696 #>>17517423 #
6. cbhl ◴[] No.17516293{3}[source]
I think there are people on both sides of this fence.

Google is still largely Python 2, but my impression is that Facebook actually managed to make the transition to Python 3 after putting in the right presubmit checks.

replies(1): >>17516436 #
7. 21 ◴[] No.17516307[source]
But the B is for Benevolent. When a huge part of the community is against, does that B still stands?
replies(6): >>17516435 #>>17516440 #>>17516441 #>>17516601 #>>17516714 #>>17516986 #
8. crdoconnor ◴[] No.17516424[source]
There are always haters but I don't remember any previous PEP being quite as unpopular as this one.
9. bch ◴[] No.17516435{3}[source]
He gave them a fantastic language for free and shepherded it for years - how much more benevolent does he need to be?
replies(2): >>17516616 #>>17517890 #
10. steveklabnik ◴[] No.17516436{4}[source]
For the discussion about Facebook, see here: https://news.ycombinator.com/item?id=17417201

It seems Python 3 is now dominant but not total, according to TFA.

11. icebraining ◴[] No.17516440{3}[source]
If both kids want to eat candy as dinner, is the father blocking that not benevolent because he's outnumbered?
replies(2): >>17516503 #>>17516653 #
12. kgwgk ◴[] No.17516441{3}[source]
This is what happens when the B and the D collide: you renounce to the FL.
replies(1): >>17516534 #
13. pvg ◴[] No.17516452{3}[source]
This is a particularly ill-chosen thread to deliberately try to re-flame this flamewar. Most threads are.
replies(3): >>17516644 #>>17516760 #>>17517200 #
14. 21 ◴[] No.17516503{4}[source]
There is a reason kids aren't allowed to legally decide for themselves until 18.

In Python land, there is this saying "we are all adults here".

Being an adult also means avoiding creating needless drama.

replies(2): >>17516596 #>>17516650 #
15. sametmax ◴[] No.17516534{4}[source]
If you are a good person.

I agree with the idea you should give power only to people that don't want it.

I think guido was the right person in power.

16. sametmax ◴[] No.17516596{5}[source]
Have you ever tried to debate on python-idea ?
17. cuckcuckspruce ◴[] No.17516601{3}[source]
Benevolent: "well meaning and kindly"

You can do something that people disagree with, even something that you think is the best for them, and still be benevolent.

18. ben509 ◴[] No.17516612{3}[source]
No, the bad decision was treating bytes and strings interchangeably in the first place. 99% of the hardest to fix breakage was due to that, and it was the right call to pay that price all at once.
replies(6): >>17516995 #>>17517386 #>>17517687 #>>17518069 #>>17520956 #>>17528411 #
19. ◴[] No.17516616{4}[source]
20. romanows ◴[] No.17516644{4}[source]
Heaven forbid that someone responds to a point made in another post. On a public internet discussion forum. In a discussion about the context and effects of divisive and difficult decisions. /s
replies(2): >>17516675 #>>17516790 #
21. ben509 ◴[] No.17516650{5}[source]
They are, but they're adults who work in completely different environments and thus have wildly divergent needs.

One contrast:

You have some people who in business and want to do keep an old code base working forever.

You have some people who have no business experience and have no idea what a bottom line is, but might need a feature for a critical open source project that many others will use.

22. ryanisnan ◴[] No.17516653{4}[source]
In nearly all cases where parenting is present, children are inferior to their parents in both intelligence and judgement.

This analogy does not work in software.

replies(1): >>17517332 #
23. jimmaswell ◴[] No.17516673{3}[source]
I'll probably never switch for personal use. The print statement change is intolerable to me. It would have cost them nothing to just leave the old syntax in. It's supposed to be a quick and convenient scripting language and they're actively working to make it more verbose and less convenient. I also still don't like not being able to use "string" objects as dumb byte containers, like I do with an IRC bot that doesn't crash with an encoding exception trying to write IRC control characters into a text file. Yes, I know I can work around that wrapping everything up nice and pretty to tell python "this isn't a real string it's okay you don't need to throw an encoding exception ssh." I just don't think that's good design.
replies(2): >>17516821 #>>17516939 #
24. pvg ◴[] No.17516675{5}[source]
Heaven, sadly, cannot forbid poopy responses but we can encourage others (and ourselves) not to post them.
replies(1): >>17517250 #
25. Redoubts ◴[] No.17516681[source]
> Python has been successful, IMHO, because Guido has made several brave, controversial calls. Python 3 breakage and async turned out to be prescient, fantastic decisions.

A lot of companies are choosing new languages over porting python from 2 to 3.

replies(1): >>17516973 #
26. cuckcuckspruce ◴[] No.17516682{3}[source]
Python 3 avoided becoming what Perl 6 has. That alone is a victory.
replies(1): >>17517296 #
27. nas ◴[] No.17516696{3}[source]
> The jury is still out on the Python 3 decision, to be honest.

It's not. Python 3 has overtaken 2 and there is no stopping migration to it now. Python 3.7 is a lot better than 2.7. Just on memory use alone, 3.7 is massively better. Sure, there will be some hold outs on 2.7 for a long time. That's fine.

Also, this is not the say that migration from 2 to 3 was handled well. It wasn't. Python 3.0 should have had backwards compatible features like allowing the 'u' string prefix. Indexing byte strings should have returned length one byte strings. Byte strings should have supported at least a minimal amount of %-style formats. Etc.

That has all been mostly resolved and is in the past. Mistakes were made because, shock, the Python core developers are not perfect and didn't foresee all the migration issues. However, there is no way that we are going back and reviving the Python 2.x branch.

replies(4): >>17517214 #>>17517416 #>>17518146 #>>17519190 #
28. dragontamer ◴[] No.17516714{3}[source]
The D is for dictator. When a huge part of the community is against, the Dictator overrules.
29. Bahamut ◴[] No.17516760{4}[source]
To be fair, the person stating that Python 3 breakage was a fantastic decision probably should've avoided referring to that as such, as it almost certainly invites disagreement on a controversial topic.
replies(1): >>17516974 #
30. simonh ◴[] No.17516774[source]
If 'everyone' was outraged, it wouldn't have been controversial, right? I'd argue that one person against _everyone_ else isn't a controversy, but in any case at the end of the day the PEP was accepted in a democratic poll.
31. blattimwind ◴[] No.17516790{5}[source]
Python 3 breakage is basically flamebait by now.
32. keymone ◴[] No.17516821{4}[source]
Syntax regularity is infinitely more important than scripting convenience.
replies(1): >>17517415 #
33. mywittyname ◴[] No.17516939{4}[source]
Try Ruby.
replies(1): >>17520093 #
34. Daishiman ◴[] No.17516973{3}[source]
Name one.
replies(2): >>17517477 #>>17517863 #
35. pvg ◴[] No.17516974{5}[source]
No, that's giving the flamemongers a flamer's veto. It's a perfectly sensible thing to mention when talking about the difficulties of leading the Python project and offering an opinion on how Guido van Rossum handled them. Picking out that one opinion and yelling little more than 'fite me' back at the person is not a perfectly sensible thing.
replies(1): >>17517087 #
36. iajrz ◴[] No.17516986{3}[source]
B stands for benevolent even in that case. The target of that benevolence is the project. His call should be in the best interest of the project (benevolent), final (dictator), and (tongue in cheek) eternal (for life)
37. jessaustin ◴[] No.17516995{4}[source]
The API in 2 is not optimal, but they fixed it the wrong way. As you know, some operations make sense with bytes, and some make sense with character strings. The operations that make sense with character strings would also make sense with bytes when an encoding is specified. Therefore, there should just be a way of annotating bytes with a suggested encoding. Then byte-oriented packages (e.g. those that deal with data sent over an interface like a socket or pipe) could simply ignore the issue of encoding. Whole classes of errors would just disappear for many python coders. Other coders, who do care about encodings and non-ASCII characters, would still get those errors but that would be OK because they would know how to fix those errors.

So yes some breaking change was indicated, but the particular change that was made was the wrong one.

replies(4): >>17517441 #>>17517444 #>>17517465 #>>17522768 #
38. Bahamut ◴[] No.17517087{6}[source]
Then if someone disagrees & an argument erupts, then that should not be surprising - that post is equally as culpable for igniting a well-discussed issue by posting something clearly so opinionated/leaning towards one side of an issue that at this point one should have known better than to even allow a conversation to digress in that direction if that person wants to avoid that discussion.

To ignore that is to straight up deny what can only be described as flamebait.

replies(1): >>17517184 #
39. pmontra ◴[] No.17517178[source]
That a customer of mine started a web project in Python 2 in 2015 after 7 years since the first release of Python 3 means that the Python BDFL and community managed the process horribly.
replies(1): >>17517772 #
40. pvg ◴[] No.17517184{7}[source]
It is not flamebait to say 'I think so-and-so handled a difficult problem well', especially as part of larger point. It's flamy to respond 'u wat m8?'. It's not a complicated thing and there's no 'fairness' in treating these things as the same.
41. coldtea ◴[] No.17517200{4}[source]
>This is a particularly ill-chosen thread to deliberately try to re-flame this flamewar

Apparently it's the right thread to be rude and to assign intentions to people you don't know though?

And all because they dared say their opinion on a subject you're sensitive about?

How about that: people can have any opinion they like on Python 3, including considering it a botched migration process and a ho-hum update. And it's totally legit for them to speak about that. And it's not your place to censor them, or act up any time they express their opinions.

You can either add your arguments, or skip reading their comments. How about that?

replies(1): >>17517519 #
42. jacquesm ◴[] No.17517212[source]
> Python 3 breakage and async turned out to be prescient, fantastic decisions.

Python 3 implementation was a step in the right direction, but the decision to allow the old language co co-exist with the new one and to break backwards compatibility between the two (for instance 'print') in places where it didn't need to break makes no sense to me.

A lot of goodwill got burned with that.

replies(1): >>17519364 #
43. TylerE ◴[] No.17517214{4}[source]
How much momentum was lost in the transition though? I know that with the pain of 3 at the time a lot of people started looking at languages like Go or even Scala.
replies(1): >>17519883 #
44. coldtea ◴[] No.17517250{6}[source]
Notice how you've only added noise in the discussion, and made a casual comment on something somebody wrote a 10+ comment meta-thread?

Plus rudely assigned intentions ("flamethrower" etc) to others?

45. jandrese ◴[] No.17517296{4}[source]
Is there even a "production ready" version of Perl 6 yet? It has to be the worst example of production hell for a computer language in history. It's the poster boy for the second system effect.
replies(1): >>17518382 #
46. icebraining ◴[] No.17517332{5}[source]
Repeating sametmax above: "That's the very point of a bdfl : it assumes he knows better than others."
47. tialaramex ◴[] No.17517386{4}[source]
I think I mostly agree with you, but it can be unclear to programmers (who are after all the people writing Python code) whether they're dealing with a string, or merely with bytes that happen to look like a string, and this causes hassle.

Until way too recently essentially all Python code couldn't handle basic SSL/TLS certificate validation for Internationalized Domain Names. Once you understand what's going on, this situation is a no brainer: In order to connect to a machine named X, we must have turned X into DNS A-labels that we could look up, and we can treat those as bytes. The certificate must have SAN dnsNames matching its names, and those too are written as A-labels. So we can almost just compare the literal bytes (actually DNS A-labels are "case-insensitive" so we need to handle that, and the asterisk "wild card")

But Python, in its wisdom, defined this API to take a string, and strings, as you observe, aren't bytes. So instead of the above unarguable approach they wasted precious months trying to figure out how best to turn the A-labels from a SAN dnsName into Unicode strings, which isn't even the right problem to solve.

Eventually sanity prevailed: https://bugs.python.org/issue28414

48. jimmaswell ◴[] No.17517415{5}[source]
Button regularity on your keyboard is infinitely more important than ergonomics too, right? Anything but a grid of equally-sized squares must be wrong by virtue of aesthetics. Spoken language too: let's eliminate all contractions because they reduce regularity. Let's also make all the speed limits in the country equal at 20mph, because regularity is infinitely more important than convenience.

You should be supporting return being made into a function too, right? That would be much more regular.

Reminder that a guideline of python was supposed to be "practicality beats purity" which is in stark contrast to the changes to print and strings. [1] Reminds me of the gradual shift of the message on the wall in Animal Farm from "four legs good, two legs bad" to "four legs good, two legs better."

1: https://www.python.org/dev/peps/pep-0020/

replies(1): >>17517602 #
49. olooney ◴[] No.17517416{4}[source]
It was touch and go for a couple of years there but yeah, Python 3 is now well and truly over the hump.

The Python 3 Readiness Project now lists [341](http://py3readiness.org/) of the 360 most common packages as Python 3 compatible.

Even that's underselling it really. For example it lists BeautifulSoup as not converted, but the link goes to BeautifulSoup 3.2.1. However, BeautifulSoup4 works great on Python 3. And for MySQL there's mysqlclient and several others, and since database packages usually follow PEP 249 pretty closely its very easy to switch. So in reality, rather than 341/360, its more like "everything worth converting has been converted." Or just "everything" for short.

50. pjmlp ◴[] No.17517423{3}[source]
Well, many embedded developers will never move beyond C89 unless forced to do so.

Meanwhile C22 work is ongoing.

replies(1): >>17519131 #
51. ubernostrum ◴[] No.17517441{5}[source]
Then byte-oriented packages (e.g. those that deal with data sent over an interface like a socket or pipe) could simply ignore the issue of encoding.

Long and bitter experience has shown that people who think they can "simply ignore" the "issue" of encoding actually can't. That mindset is mostly a more polite way of saying "people who assume everything is ASCII all the time, or at most an encoding that always has one byte == one character". Those assumptions break sooner or later. I prefer having them break sooner, because I've been the person who had to clean up the mess at an unpleasant time when it was kicked to "later".

Which in turn means Python 3 made the right choice: text is text and bytes are bytes, and you should never ever pretend bytes are text no matter how much you think you'll never run into a case where the assumption fails.

replies(2): >>17517640 #>>17522848 #
52. tialaramex ◴[] No.17517444{5}[source]
Implicitly converting strings into bytes or vice versa means now all your APIs grow an exception "Invalid encoding" / "Can't encode this" / "Can't decode this" / etcetera that you need to deal with.

Making people actually do the conversion has the advantage that when writing their string conversion code they might actually do something with the exception beyond maybe logging it and then pressing on anyway. It also gives you the opportunity to explicitly offer them alternatives like treating everything we can't encode as some sort of replacement character (works well for Unicode, not so much for ASCII), which is way too much to ask of every single function that takes bytes.

replies(1): >>17517968 #
53. jrochkind1 ◴[] No.17517465{5}[source]
> The operations that make sense with character strings would also make sense with bytes when an encoding is specified. Therefore, there should just be a way of annotating bytes with a suggested encoding.

That's the ruby solution. I like the ruby API here. When ruby introduced it in 1.9, it did cause similar upgrade pain, since you weren't used to having your strings tagged with an encoding, and suddenly they all kind of need to be if you want to do anything with them as strings-not-bytes.

As someone else noted would be the result, indeed the result was lots of "incompatible encoding" exceptions.

I think ruby actually has a pretty reasonable API here, but several years on, there are still _plenty_ of developers who don't understand it.

replies(1): >>17518080 #
54. ubernostrum ◴[] No.17517477{4}[source]
I think it's true, but also a red herring.

A lot of corporate dev environments operate on a policy where you're basically allowed to fix things that sales and customer support explicitly ask to fix, but nothing else. Which in turn means an environment where doing maintenance work that indirectly sustains the software is off-limits. Which in turn means they never ever upgrade the underlying platform (that's off-limits maintenance work), and so they end up on an EOL'd platform. At which point they blame the platform, and announce they're going to switch to something better that doesn't impose this problem on them.

Those types of places were never going to upgrade to Python 3 under any circumstances. They probably would not have even upgraded to a completely-backwards-compatible Python 2.8, if that had been released. So blaming Python 3 is a red herring here.

55. scott_s ◴[] No.17517519{5}[source]
Opinions are fine. But "Did you forgot the /s tag?" is antagonistic. Please don't antagonize.
56. keymone ◴[] No.17517602{6}[source]
Are you fingers equally spaced square shape manipulators?

I don’t support having return at all. Statements that are not expressions are a mistake.

Syntax irregularities are anti-practical.

57. ◴[] No.17517640{6}[source]
58. jerf ◴[] No.17517687{4}[source]
"No, the bad decision was treating bytes and strings interchangeably in the first place."

Show me the 1995 software that gets this right, and I'll show you proof that time travel is possible, by simply showing you that software right back again.

Abstractly, yes, it's true. Concretely, though, it's not a particularly valid criticism.

59. janoc ◴[] No.17517772{3}[source]
Could it be that many vendors still ship Python 2 as default for internal reasons (system-related scripts and what not rely on it)? Macs, for example ...

So you customer, not knowing any better, used whatever was on the machine already. If that's the case, that's really not the Python's community's fault.

replies(2): >>17517898 #>>17538310 #
60. liveoneggs ◴[] No.17517863{4}[source]
Google replacing python with Go?
replies(3): >>17518043 #>>17518414 #>>17533714 #
61. kolpa ◴[] No.17517890{4}[source]
For every minute that he holds the BDLF title.
62. pmontra ◴[] No.17517898{4}[source]
They could have used any Python version with one of the many version managers around or docker. I think nobody cares about what comes with the operating system nowadays.

The problem was that after 8 years there were still around libraries and frameworks that worked only with Python 2. That's a huge failure. If developers want to keep using the old stuff it means that the new one is either badly designed or badly managed.

Compare it with Ruby. There were big changes from 1.8 to 1.9 (unicode stuff among the others) and again with the 2.x series. The language mostly maintained backward compatibility and we can still write Ruby on 2.5 with the old 1.8 syntax. Community ported libraries and frameworks, started using the new features and all went well.

63. jessaustin ◴[] No.17517968{6}[source]
...which is way too much to ask of every single function that takes bytes.

Sorry if I wasn't clear. I meant to suggest that the byte-functions wouldn't know or do anything about encodings. They just work with bytes. It's the other functions, that take the encoding-annotated bytes (or optionally a "pure" unicode type), that would care about encodings.

64. Daishiman ◴[] No.17518043{5}[source]
That has little to do with Python 3 and a lot to do with the scale of Google's services where high performance is really important and where refactoring in static languages is easier.
65. fgonzag ◴[] No.17518069{4}[source]
Bad decision? UTF was Standarized in 1993, python was first released in 1991. You can't decide to use something that hasn't been invented yet. Back then bytes and string were the same thing. Java did do it right but by 1995 the industry had already seen the problems of differing character sets.
replies(1): >>17522175 #
66. jessaustin ◴[] No.17518080{6}[source]
Sure, there are growing pains with any breaking change. Do you think the ruby 1.8 -> 1.9 transition went more smoothly than the python 2.7 -> 3.x... transition?
replies(2): >>17518536 #>>17518878 #
67. jhayward ◴[] No.17518113[source]
> That's the very point of a bdfl : it assumes he knows better than others

I think it's not that he knows better, it's that there can be a single, coherent, consistent design consciousness.

A BFDL can create an effective process of evolution rather than some of the more egregious open-mob process failures that are prevalent in open source.

68. mistrial9 ◴[] No.17518146{4}[source]
false imperative => "Python 3 has overtaken 2 and there is no stopping migration to it now. "

this shows a superficial, almost entertainment-industry sort of view of a software development lifecycle..

in the latest Ubuntu Bionic with apps, building right now on a local machine, I see 143 python-xx packages installed and 43 python3-xxx ..

saavy package authors use import future and six to side-step the whole issue, while core maintainers struggle, and outsiders invoke a mob voice

Python 2.7 for LTS

69. lizmat ◴[] No.17518382{5}[source]
There has been a production ready version of Rakudo Perl 6 (https://perl6.org) since Christmas 2015. It has been on a monthly release cycle for years, and a 3-monthly release cycle for Rakudo Star, the "user" distribution (with some bells and whistles added).

Cro (https://cro.services) is a set of libraries for building reactive distributed systems. Comma IDE (https://commaide.com) is an IDE for Perl 6, based on the JetBrains IDEA platform, now in (paid) beta.

If you want to keep up-to-date on Perl 6 development, check out the Perl 6 Weekly (https://p6weekly.wordpress.com).

70. joshuamorton ◴[] No.17518414{5}[source]
This also isn't really true. Google is certainly replacing certain things with Go. But its not replacing python with go.
71. jrochkind1 ◴[] No.17518536{7}[source]
My impression is that it did, yes.
replies(1): >>17520279 #
72. coldtea ◴[] No.17518878{7}[source]
Sure it did. Barely took a few years, and it also had a large performance boost (whereas 3 initially came with regressions until 3.4 or so).

Plus, basic things like Rails were working from the start.

73. brettcannon ◴[] No.17519017[source]
He fought for it because he thought it was the right call. The role of a BDFL is to make those kinds of calls for the benefit of the language and community. It's really tough to fight the "tyranny of the majority" and go with what you think is right versus what everyone is screaming and yelling at you about.
74. llukas ◴[] No.17519131{4}[source]
> Well, many embedded compilers will never move beyond C89 unless vendor is forced to do so.

FTFY

replies(1): >>17520842 #
75. cwyers ◴[] No.17519190{4}[source]
That's not the point of the person you're responding to. They didn't say that the transition didn't happen. They said it's not yet known if it was worth it. All you're saying is that it happened.
replies(1): >>17519438 #
76. JetSpiegel ◴[] No.17519364{3}[source]
I think this was important. The class of bugs it would have created if it had been compatible with the unicode/ascii split would be hideous.

Fail fast. It's better to break right away than having false senses of security. There is always __future__ too.

77. nas ◴[] No.17519438{5}[source]
I'm saying it happened and Python 3 is the language I want to use. If you don't do Python 3, you either keep the error prone str/unicode string model or you dream up some way to evolve to a better model. Would some mythical version of an evolved Python 2.x be better than what we have? I mean, how to argue against that? I haven't seen anyone propose a workable migration plan. Python 3.7 is better than 2.7.15 and better than 'tauthon'.
78. lenocinor ◴[] No.17519883{5}[source]
Python currently still 4th at https://www.tiobe.com/tiobe-index/ . As the most popular scripting language on there by some margin, I'd say they're still doing pretty well.
79. cutler ◴[] No.17520093{5}[source]
Aw, alright then.
80. jrochkind1 ◴[] No.17520279{8}[source]
But on the other hand, Python's overall popularity has grown (mostly on the back of 'data science' I think), while rubies has shrunk, and python is definitely more popular than ruby at the moment... so python's lesser success at that transition didn't actually matter much in the end?
81. pjmlp ◴[] No.17520842{5}[source]
Not really, many of those developers do have C99 compilers with partial C11 support at their disposal.

There are almost no vendors left offering C89 only compilers.

82. kqr ◴[] No.17520956{4}[source]
I wish I could sufficiently express my frustration for this. It's such a common mistake too. If you design a language with a type for text, and your language has a type called "string" oh God please God let those two be the same thing.

There are so many languages in which the type "string" is not the one to use for strings...

83. coldtea ◴[] No.17522175{5}[source]
>Back then bytes and string were the same thing.

No, they weren't. Impossible as it seems, we had encodings (including multi-byte encodings) for decades before UTF.

Python couldn't use UTF-8 in 1991, but it could very well tag strings with a specific encoding, instead of treating them as a bucket of bytes C-style.

>Java did do it right but by 1995 the industry had already seen the problems of differing character sets.

We had seen the problems of "differing character sets" for decades already (Windows vs DOS version of the same language encodings was a classic example for most users, but the problems go back to EBCDIC and so on).

Java just did a more right thing, but we already have a need for generic string types that can handle multiple encodings and know what they contain and how to convert from one to another.

84. kqr ◴[] No.17522768{5}[source]
Encodings are related to storage and transportation -- not business logic. You should not have to deal with encodings inside your application, so forcing programmers to deal with encodings at the point it matters, when text enters and exits the application, is thus sound.

If yoy truly don't care whether or not the text is decodable (which is sometimes the case), then don't read it as a string, read it as a byte array.

You can still have methods that are generic over byte arrays and text, since that is an orthogonal concern.

85. jessaustin ◴[] No.17522848{6}[source]
For lots of applications it doesn't matter how many bytes are in a character, because characters don't matter. Even within a particular application, it's common for characters to only matter in a few particular locations. It would still have been a win for python, to make such applications easier to write and maintain.
86. AlexCoventry ◴[] No.17528411{4}[source]
> the bad decision was treating bytes and strings interchangeably in the first place

Python preceded unicode, though.

87. stOneskull ◴[] No.17533584[source]
i don't think you answered "why did he feel the need to fight so hard for it?"
88. webmaven ◴[] No.17533714{5}[source]
I understand that had more to do with their "Unladen Swallow"[0] work being rejected than anything related to the transition to Python3.

Since Google couldn't convince folks to let them make Python faster, they created a NEW language instead.

[0] https://www.python.org/dev/peps/pep-3146/

89. collinmanderson ◴[] No.17538310{4}[source]
Mac probably uses whatever python FreeBSD uses. Most BSDs still use Python 2 by default.