[cppyy] GetNumMethods for namespaces

Hi,

I’ve tried to use this function, but it returns 0 for namespaces.

Any ideas on how to avoid that?

Thanks!

@etejedor is in vacation but I hope he will be reply as soon as he will back…

Hello,

If I understand correctly, you are trying to use an internal Cppyy function from your code? Could you give me some context?

Hello,

Sorry, no, I’m not calling the internal function, I’m calling this function that calls the internal one:

The context is simple: I have a cppyy_scope_t object which is, in fact, a namespace; for this namespace, I want to know how many free functions are inside it, but I can’t use the function from above because it simply returns 0 for namespaces. So basically I need a workaround for this.

Hi,

I see, if you are trying to implement a C++ library on top of cppyy directly, I would recommend that you use the upstream cppyy (instead of the cppyy distributed with ROOT, see https://cppyy.readthedocs.io/en/latest/ for more information) and you will be able to get support for cppyy-backend functions from the cppyy developers.