2 ms·
Separating text and byte strings was the reason for Python 3. The other changes were just taking advantage of the compatibility break.
by pseudalopex 6y ago
Separating text and byte strings was the reason for Python 3. The other changes were just taking advantage of the compatibility break.
- user5994461 6y agoAnd some of the other changes should not have happened. Personally I still have a sour taste of the urllib migration. All the imports were moved around for no reasons, completely breaking all usage of urllib and any "import urllib", with no way to fix in sight. The solution came with six a million years later, adding a hundred alias in six.moves.urllib.somefunction that dispatch to the right place.