Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hullo List,

I'm working on a school project that involves UNO with Python (talking to LO from an external invocation of Python). One of the things that I find extremely frustrating is the lack of discoverability from within the Python context. The interactive shell (IPython package and IPython.embed() ) is an amazing tool for debugging and data structure discovery (with the power of tab-completion, among other things), but when most functions are hardly documented, it reduces the discoverability to educated guesswork and actual C++ code inspection.

1. Is there an intentional reason for a lack of this sort of builtin documentation?

For example, within the Python shell:

>>> import uno
[...boiler plate to setup desktop variable from UNO...]
>>> help(desktop.loadComponentFromURL)
Help on PyUNO_callable object:

class PyUNO_callable(object)
 |  Methods defined here:
 |
 |  __call__(...)
 |      x.__call__(...) <==> x(...)

>>>

which is hardly useful to know what loadComponentFromURL actually does.

2. If there is not an intentional reason, would drive by documentation efforts (as I discover them, and certainly to be improved, but better than nothing), be generally appreciated?

Thanks,

Kevin

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.