https://bugs.freedesktop.org/show_bug.cgi?id=50470
Bug #: 50470
Summary: PyUno objects not introspectable on Python 3
Classification: Unclassified
Product: LibreOffice
Version: LibO 3.5.3 release
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: minor
Priority: medium
Component: Libreoffice
AssignedTo: [email protected]
ReportedBy: [email protected]
In Python 2, dir(obj) on a PyUno object correctly finds its method names. In
Python 3, it fails to find any names. This means that it isn't introspected,
e.g. for tab completion.
PyUno objects make their attributes visible via __members__, an older method
for introspection that was removed for Python 3. The new standard is to define
a __dir__() method returning the list of names. See documentation:
http://docs.python.org/library/functions.html#dir . __dir__() works at least
from Python 2.6.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs