https://bugs.documentfoundation.org/show_bug.cgi?id=150257

--- Comment #3 from Mike Kaganski <mikekagan...@hotmail.com> ---
Note: the code in comment 0 additionally misses the closing parenthesis. It
should be

import uno
def test_isInstance():
    doc = XSCRIPTCONTEXT.getDocument()
    print(uno.isInterface(doc))

I tried it using Version: 7.4.0.2 (x64) / LibreOffice Community
Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

and indeed, it works as described.

Then I modified it like this:

import uno

def test_isInstance():
    doc = XSCRIPTCONTEXT.getDocument()
    print(uno.isInterface(uno.getClass("com.sun.star.uno.XInterface")))

and it returned 1.

I really don't know what the isInterface might be used for, but it looks like
it expects some type meta-objects, not actual interface implementations.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to