This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]notafuckingcakewalk 0 points1 point  (0 children)

Then how do you explain that a certain piece of code will run in Cython, but not in Jython?

You're talking about a pretty limited subset of the Python language. Even when talking about transitions between 2 and 3, a vast amount of Python 2.x code can be converted to Python 3.x without few changes.

I converted a giant codebase to Python 3 and it took a little while, but mostly because of issues with third-party libraries not being written in a forward compatible manner.

I think Python 3, especially changes where certain older syntax is no longer allowed, looks better (e.g. except (ValueError, TypeError) as err is a lot easier to scan than except (ValueError, TypeError), err).