r/Python • • Nov 24 '16

The Case for Python 3

https://eev.ee/blog/2016/11/23/a-rebuttal-for-python-3/
575 Upvotes

349 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 24 '16

[deleted]

1

u/[deleted] Nov 24 '16

This is not really true, for example see gets, completely removed from C11.

For those kinds of minor issues you have compiler switches. And if that fails you can simply compile that piece of code as C89 and link with the rest of the C11 program, as the language doesn't even matter, being ABI compatible is enough. In the case of gets() you might of course want to actually change the code, as that function is just plain evil.

With Python on the other side you don't have that kind of compatibility at all, you must convert all Python2 code to Python3 code or it won't work. It would have been nice to be able to compile old Python2 to Python3-byte code or something like that. I don't understand why that hasn't been tried, most of the language changes are just syntactic sugar, but don't change the underlying semantics.