Porting cython files from python2 to python3 with 2to3
问题 I have a python package which was developed under python2.7, but I need to port it to python3.6 . I use cython in some parts of the code, hence the package has both .py and .pyx files. I tried the 2to3 command, but I got an error that I couldn't neither understand nor solve. Example: I have the following test.pyx file # cython: profile=False cimport cython @cython.boundscheck(False) @cython.wraparound(False) @cython.profile(False) cpdef sillyfunction(): print 'Thank you for your kind help'