pyRMSD icon indicating copy to clipboard operation
pyRMSD copied to clipboard

Add Python 3 support

Open benmwebb opened this issue 5 years ago • 3 comments

This should add full Python 3 support by making a number of simple modifications so that the code builds and runs with both Python 2 and Python 3:

  • Use print function rather than print statement;
  • Use Python 3 C API protected with preprocessor macros;
  • Replace except x,y with except x as y;
  • Use range in Python 3 rather than xrange.

benmwebb avatar Oct 23 '19 22:10 benmwebb

would be very nice to see that in the master!

aozalevsky avatar Dec 13 '20 11:12 aozalevsky

We incorporated this into our own fork long ago: https://github.com/salilab/pyRMSD

benmwebb avatar Dec 16 '20 22:12 benmwebb

@benmwebb I saw that and I am very grateful to you since I am already using it in several projects which have to be updated from the python2 to 3. it was a kind of +1 message. just in case.

aozalevsky avatar Dec 17 '20 11:12 aozalevsky