Comparing indigo.Lists

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

Posted on
Tue Apr 09, 2013 8:33 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Comparing indigo.Lists

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

Posted on
Tue Apr 09, 2013 9:03 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Comparing indigo.Lists

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

Thanks for the bug report. :-)

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest