Precautions when using six in a python script that runs under the environment where Python 2.5 runs.
See the official documentation for what six are. Six: Python 2 and 3 Compatibility Library — six 1.10.0 documentation
Six provides simple utilities for wrapping over differences between Python 2 and Python 3. It is intended to support codebases that work on both Python 2 and 3 without modification. six consists of only one Python file, so it is painless to copy into a project.
Official repository (gutworth / six — Bitbucket) At the moment (2015/12), the latest version is 1.10.0
The Japanese translation of the official page is currently up to 1.9.0. Six: Python 2 and 3 compatibility library — six 1.9.0 documentation
If there is a possibility that it will work in Python 2.5 environment, use six 1.8.0.
Python 2.5 is no longer supported in 1.10.0.
six 1.10.0 : Python Package Index
Six supports every Python version since 2.6. It is contained in only one Python file, so it can be easily copied into your project. (The copyright and license notice must be retained.)
Python 2.5 is supported in 1.9.0.
six 1.9.0 : Python Package Index
Six supports every Python version since 2.5. It is contained in only one Python file, so it can be easily copied into your project. (The copyright and license notice must be retained.)
However, I'm using operator.methodcaller, which doesn't work in Python 2.5. Looking at the source diffs, it has been modified to use operator.methodcaller in 1.8.0-> 1.9.0.
So, if you also support Python 2.5, use six 1.8.0.
Recommended Posts