Converting Python Tuples / Lists into Any in PyUNO
tv at beamnet.de
Wed May 15 13:27:58 UTC 2019
currently, the PyUNO bridge converts tuples and lists by converting each
element to Any and then constructing a list of Any.
This is not what many functions expect and leads to a suboptimal
experience, e.g. when using XPropertySet.setPropertyValue:
A lazy grep through the sdk/idl gives
80 uses of Any ( rgrep 'sequence< *any' sdk/idl | wc -l )
220 uses of String ( rgrep 'sequence< *string' sdk/idl | wc -l )
but that isn't really what this is about, it's about what sequence types
are expected when an any is passed.
My intuition would be that the more specific type is better when
applicable, but I would value your input whether such a change would be
considered an improvement.
More information about the LibreOffice