2 ms·
> And the article doesn't even mention that Python 2 has all the same features. Because it's not about the fact that you can achieve the same thing. What the a
by daenney 10y ago
> And the article doesn't even mention that Python 2 has all the same features.
Because it's not about the fact that you can achieve the same thing. What the article does is illustrate that a thing that returns 'str' when you call 'type' on it in Python 2 is not the same nor can be used in the same way as what Python 3 would call a 'str'.
- Grue3 10y agoNo, if that was the author's intention, he would've simply pointed out that "unicode" was renamed to "str", while "str" was renamed to "bytes" and is no longer considered a string. Instead, he wanted to demonstrate how Python 3 string handling is some sort of a major breakthrough when it's largely a cosmetic change.
- jjawssd 10y agoIt's a cosmetic change which happens to completely derail ill-informed Python programmers, so yeah, it's a big deal.