[omniORB] im_func used in python3/omniidl_be/python.py

Guilhem Saurel guilhem.saurel at laas.fr
Mon May 6 17:45:49 BST 2019


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




More information about the omniORB-list mailing list