Comparing indigo.Lists

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Perry The Cynic
Posts: 857
Joined: Mon Apr 07, 2008 9:46 pm

Comparing indigo.Lists

Post by Perry The Cynic »

It appears that indigo.List does not behave like the built-in list when it comes to comparison:

Code: Select all

>>> s1 = indigo.List([666])
>>> s2 = indigo.List([666])
>>> s1 == s2
False
>>> list(s1) == list(s2)
True
Say what? Did you mean to do that?

(It means that we have to be really careful about comparing old and new values of list-valued IOM properties, because even if nothing changes they're "changed"...)

Cheers
-- perry
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Comparing indigo.Lists

Post by matt (support) »

Whoops. Copy/paste bug. Dicts compare correctly but not lists. Both will work correctly in the next beta.

Thanks for the bug report. :-)
Image
Locked

Return to “Extending Indigo with Plugins and Python”