Closed jirikuncar closed 8 years ago
@kaplun six
is nice for quick compatibility, but if we are using only limited set of features it is a bit overkill. It's usually possible to write compatible PY2/3 code without using six
or python version detection.
The releases of six
are not very frequent, which is good, but we may have to watch for any future e.g. security related updates, if some of our packages are going to use a lot of six
. Otherwise we should be good.
Perhaps leave a comment in _compat.py
saying the code was inspired/borrowed from six
? And, for Invenio standalone packages, we can perhaps centralise some stuff in a common package? (Invenio-Base
?)
To better understand:
six
? Aren't we ending up reimplementingsix
into the_compat.py
?