sysbio-vo / bnfinder

BNFinder - tool for learning bayesian networks
GNU General Public License v2.0
50 stars 8 forks source link

Python 3 any time soon #4

Open Wesserg opened 6 years ago

Wesserg commented 6 years ago

Hello alnf. I was just wondering if you have any plan to move the package to python3 in near future?

alnf commented 6 years ago

Hi, yes, I was planning to do that after I wrap up some parallelization fixes. Although I'm not sure what is the most elegant way to do it, since I want both pyhon2 and python3 to be supported.

spock commented 6 years ago

Unless there are some Python2-only dependencies, switching to Py3 might be a reasonable way forward (starting with e.g. automatic https://docs.python.org/3/library/2to3.html). If that is not possible, then a library like http://pythonhosted.org/six/ is often used to make code run under both Py2 and Py3.

alnf commented 6 years ago

@spock Thanks for the references. I tried several times 2to3 for other soft, but never used six, will be interesting to try.