Converting Python Tuples / Lists into Any in PyUNO

Thomas Viehmann tv at
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.

Best regards


More information about the LibreOffice mailing list