News for hackers. Stuff that matters.
Re:Python 3 makes it easier to develop high-quality software by takeda on Wednesday November 18, 2015 @05:13PM (#10591158)
This is also significant reason why people have problem when migrating py2 code to py3. The code is actually buggy and mixes strings with bytes. Once they run it in Py3 all of the bugs show up because Py3 is stricter about it.

For the same reason if you need to write code that should work on Py2 and Py3, it's much easier to write it on Py3 and then add backward compatibility through "from __future__ import ..." and the six module.

Re:Python 3 makes it easier to develop high-quality software by eeZi on Friday November 20, 2015 @04:51PM (#10604110)
I've heard lots of good things about this project, by the way: http://python-future.org/

It's much less clunky than six. Instead of manually adding the compatibility layers to your code, it automates the process, which results in cleaner code. It can even translate (some) Python 2 modules on-the-fly.

Many projects switched to it from six.