Open cgdae opened 2 years ago
Looks like upstream isn't providing any enums (still looking into that one).
The function is missing b/.c __dir__
didn't perform updates. Was b/c it used to leak, but that's no longer the case, so I added the forced update/load.
Thanks, good to know this is understood. Will try to figure out how to build cppyy myself and test with latest version.
inspect.getmembers()
does not seem to see C++ functions and enums insidecppyy.gbl
. But it does see functions and enums inside a C++ namespace withincppyy.gbl
.The same behaviour occurs with
dir()
.This is with
cppyy.__version__
=2.3.0
I understand that cppyy is generally lazy about creating things, but given that it seems to be able to enumerate functions and enums in a C++ namespace within
cppyy.gbl
, i was hoping it would be able to do so forcppyy.gbl
itself.So, is this expected behaviour? Can anything be done to allow detection of enums and functions within
cppyy.gbl
?Python code that demonstrates the problem:
Output:
Thanks in advance for any help here.