3 ms·
You can write code that runs with both python3 and python2. Therefore I wouldn't call them different languages.
by jhasse 9y ago
You can write code that runs with both python3 and python2. Therefore I wouldn't call them different languages.
- jwilk 9y agoBy that logic, C and C++ shouldn't be called different languages.
- jhasse 9y agoThey share a special relationship, don't they? The difference to Python is though, that you're restricting yourself A LOT more when writing C and C++ compatible code (you're basically writing C with a few exceptions).
- ProblemFactory 9y agoTo a certain extent, they aren't. The same compilers and tools are used for both, many developers mix the two in one codebase, and use small features from C++ in "C programs" because the compiler allows them to. For example before recent C standards, function overloading by argument types or declaring variables in the middle of a function. But Python2 and Python3 are way more similar than C and C++.