3 ms·
Full disclosure: I do not work in Python. However, I found your explanation really enlightening and it brings up a further question. If there are tools that wou
by trcollinson 10y ago
Full disclosure: I do not work in Python. However, I found your explanation really enlightening and it brings up a further question. If there are tools that would make these libraries better in some automated fashion, would there be an opportunity for an open source project to basically go through all of the libraries and check them for compatibility and then run the automation to try to upgrade them and submit pull requests for the outcome if it turned the project from incompatible to compatible?
I live over in the Ruby and JavaScript realm of things. I can imagine running through every project on Ruby Gems or on NPM and through it would be a monstrous undertaking it would be useful to the community and to the projects themselves. Would this be possible on the Python side of things as well?
- enkiv2 10y agoA properly written python2 module will already be python3 compatible, in most cases. Occasionally, modules that violate existing best practices will do so in ways that limit python3 compatibility. They can be fixed with automated tools that ship with python. Package systems like pip have separate repositories for python2 and python3, and you can have both python2 and python3 installed along with pip3 and pip2, and a whole package set for each; a package that is not compatible with python3 won't be available from pip3. But, most packages were already compatible, and those that weren't have had many years to become compatible. Any python package that currently doesn't support python3 is either no longer being maintained or is acting as a political statement.