3 ms·
Python 2 versus 3 isn't anything like PHP 4 versus 5. The problem is that there are a few minor but backwards-incompatible changes to the syntax in py3. Libra
by eevee 14y ago
Python 2 versus 3 isn't anything like PHP 4 versus 5.
The problem is that there are a few minor but backwards-incompatible changes to the syntax in py3. Libraries can't update until all their dependencies update. And web frameworks are some of the most complex software with the most dependencies, so they're updating last.
It's still pretty much the same language behaving in the same way, though. If you know Python 2 really well, it'll take all of five minutes to get accustomed to Python 3. Just don't worry about it and learn 2 until people stop telling you otherwise. :)
- mkopinsky 14y ago"Don't worry, migration from Python 2 to 3 is really easy. It'll take 5 minutes to learn." "Migration for libraries from Python 2 to 3 is really hard. It's taken them a few years and counting." ??
- eevee 14y agoRight. Learning Python 3, once you know 2, is really easy. Library maintainers have two problems: they have to twiddle their thumbs until all their dependencies have ported, and then they have to get their code running against both 2 and 3. The former is exactly why I'm saying to use 2 for now, and the latter is easy if you only support 2.7 but rather more difficult for projects that still want to run on some archaic thing like 2.3.