Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nsIVariant in python

6 views
Skip to first unread message

Daniele Rizzo

unread,
Nov 21, 2006, 4:54:03 AM11/21/06
to
I've read that "There is (almost) support fot nsIVariant."

Any examples?

mhammond

unread,
Nov 22, 2006, 7:55:48 PM11/22/06
to
On Nov 21, 8:54 pm, Daniele Rizzo <daniele.ri...@spacespa.it> wrote:
> I've read that "There is (almost) support fot nsIVariant."
>
> Any examples?

Python has full support for variants - just pass a Python
string/int/etc to a method requiring an nsIVariant and it will be
converted. If you implement an interface taking an nsIVariant, it will
be converted to a Python object. The test suite demonstrates this.

Mark

Daniele Rizzo

unread,
Nov 24, 2006, 10:32:07 AM11/24/06
to
mhammond wrote:
If you implement an interface taking an nsIVariant, it will
> be converted to a Python object. The test suite demonstrates this.
Thanks for your response.

Where i find the test suite?

mhammond

unread,
Nov 28, 2006, 8:29:38 PM11/28/06
to

In the python/xpcom/test directory in the source tree -
http://lxr.mozilla.org/seamonkey/source/extensions/python/xpcom/test

Mark

Daniele Rizzo

unread,
Nov 30, 2006, 9:21:04 AM11/30/06
to

thanks

0 new messages