I have another question where I’m not sure if it is a bug or a feature. this time regarding access to template member functions in PyROOT. According to my understanding it should be possible to call those using something like
obj.member("template arguments as C++ type")("arguments")
However this only works after accessing the attribute first on the class object. Otherwise trying to access the member results in an AttributeError. So I have to do
This actually does not work either in the experimental PyROOT with modern Cppyy. I checked the template tests of Cppyy and I found this, which makes it possible that these tests work - they are similar to yours. So cppyy needs that extra non-templated sibling to work, because of some bug in genreflex (according to the comment).
@Axel do you know what this genreflex bug that Wim mentions here is about?