DDMAL/libmei

Python object lists

Closed this issue · 5 comments

Python lists of MeiElement/MeiAttribute objects do not play well with the python bindings of the C++ functions.

for example:

attrs = nc.getAttributes()

# manipulate the array somehow
attrs.pop()

nc.setAttributes(attrs)

Results in:

MeiElement.setAttributes(MeiElement, list)
did not match C++ signature:
    setAttributes(mei::MeiElement {lvalue}, std::vector<mei::MeiAttribute*, std::allocator<mei::MeiAttribute*> >)

You got this, or should I have a go at it?

I'm on it right now

Awesome. You get 🍦

I scream, you scream, we all scream for boost::python bindings!