Re: Comparing lists
jon klein <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Feb 1, 2004, at 4:00 PM, Will Davis wrote: > I've got around this by checking the items in the list for a z > component, but I'd still like to be able to work out why it happens. > Does list equality work differently? Ah, I just looked at the code for testing list equality and see that it's not really doing what one would probably expect. Right now, the lists are getting coerced to integers -- in other words, it's comparing the lengths of the lists, not the lists themselves! I will make sure this gets fixed for the next version. In the meantime, I would suggest that you stick with your workaround. You should compare the individual elements of the list instead of trying to compare the entire list. - jon klein _______________________________________________ breve mailing list [email protected] http://www.spiderland.org/mailman/listinfo/breve