[moving to cython-users mailing list]

Kai Huuhko schrieb am 06.03.2015 um 06:55:
> This change:
> https://github.com/cython/cython/commit/499d98628a8a929ed065bf38ee4ec6405145e092
> 
> removed compatibility code for PyMethod_New to have the same signature
> with both py2 and py3. Is there an alternative way - that is py2/py3
> compatible - within a code block to bind functions to an instance?
> 
> For reference, we use it here:
> https://git.enlightenment.org/bindings/python/python-efl.git/tree/efl/evas/efl.evas_object_smart.pxi#n431

You can set the compiler directive "binding=True", that will allow Cython
functions to bind as methods.

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to