im_func used in python3/omniidl_be/python.py

Guilhem Saurel via omniORB-list <[email protected]> Mon, 6 May 2019 18:45:49 +0200
Newsgroups gmane.comp.corba.omniorb.user
Message-ID <[email protected]>
Hello,

Using Python 3 and a custom python backend¹, I got the following error:
> AttributeError: 'function' object has no attribute 'im_func'

Python 2to3 porting guide² seems to indicate that 'im_func' no longer
exists in Python 3.

So I tried to remove it³, and it fixed my use case.


So… Long story short, I have no idea what I'm doing, but I think this
'im_func' should not be in the python3 folder. Is this a bug, or did I
miss something ?

Regards,
Guilhem.


¹:
https://github.com/jrl-umi3218/jrl-cmakemodules/blob/master/hpp/idl/omniidl_be_python_with_docstring.py²:

https://docs.python.org/3/library/2to3.html?highlight=im_func#2to3fixer-methodattrs
³:https://github.com/nim65s/robotpkg/blob/0730604/middleware/omniORBpy/patches/patch-af


_______________________________________________
omniORB-list mailing list
[email protected]
http://www.omniorb-support.com/mailman/listinfo/omniorb-list