r/ProgrammingLanguages • • Nov 21 '17
Python 3 and Firefox 57 (an observation)
[deleted] — view deleted post
10
Upvotes
r/ProgrammingLanguages • • Nov 21 '17
[deleted] — view deleted post
View all comments
7
u/oilshell Nov 22 '17
I think this has been discussed to death in the Python community?
The Python core team explicitly tried to provide enough "carrots" for people to migrate to Python 3. The, idea like you say, is to balance the costs with benefits.
In my opinion, and for my use cases, they didn't provide enough benefit. I still use Python 2. But others disagree and they went to Python 3.
So yes there's more of a split than desired, and I personally think they could have done more. But I don't see what's new about this discussion. If you think they didn't even realize this concept of balancing costs and benefits, then you're mistaken. But if you think they realized it, but didn't quite succeed, then I agree with that assessment :)
FWIW I ported Oil to Python 3 and then back to Python 2 [1], so this isn't just shouting from the sidelines. Ironically, the unicode support in Python 3 is really bad for Unix-style programming. File systems don't have an encoding! The stdout of "grep" as called by
subprocessalso has no encoding! Some things are better dealt with as byte streams.Python 3 forces you to know specify encodings in the "wrong" places in your program. It might good for "application" programming, but it's not good for writing Unix command line tools (which are a big part of Python's user base).
Since I forked the Python VM, and cobbled together a Python bytecode compiler in Python, I'm toying with the idea of porting my personal Python scripts to "OVM". It's more of a pipe dream at this point, but it might not be harder than porting all the Python 2 I have lying around.
Although I guess I could keep using Python 2 in 10 years? I think when python-dev abandons it in 2020 I think, there will be unofficial forks to maintain it. The codebase is very mature and well-studied.
[1] http://www.oilshell.org/blog/2017/04/08.html