cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
878 stars 205 forks source link

Port to python3 #203

Open John-Ao opened 2 years ago

John-Ao commented 2 years ago

Now it can be used in python3 (but not python2).

temetski commented 2 years ago

To maintain python 2 compatibility, maybe you can use

from __future__ import print_function

This allows python 2 to use the print function with parentheses, while maintaining compatibility with python 3 syntax.

I'm not sure if the changes to CMakeLists.txt matter for python 2 compatibility though, will also check.