lintel icon indicating copy to clipboard operation
lintel copied to clipboard

Lintel support with python 2.x?

Open aurooj opened this issue 6 years ago • 2 comments

Hi, As per your comment below: To use Python 2, I believe a (potentially small) amount of code would have to be changed in lintel/py_ext/lintelmodule.c.

Can you please help what change is need to be made in the lintelmodule.c file for python2?

aurooj avatar Oct 08 '18 04:10 aurooj

Hi aurooj, I believe the major part that needs changing is the C extension module initialization:

https://github.com/dukebw/lintel/blob/8ba861ef5424890568583a64c11da9c6ec293fff/lintel/py_ext/lintelmodule.c#L492-L500

This can be converted by following the guide here: https://docs.python.org/2/extending/extending.html. Any other inconsistencies between the Python 2 and 3 C extension APIs would need to be changed as well. This article: https://docs.python.org/3/howto/cporting.html might be useful.

dukebw avatar Oct 08 '18 15:10 dukebw

Hi, any progress here? Could you please offer example codes of lintelmodule.c for python 2.x?

jugg1024 avatar Aug 01 '19 06:08 jugg1024