Re: Comparing lists
"Will Davis" <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <008301c3e9d5$f7137820$f90110ac@KWIKSILVA> |
Hi, Thanks for that - at least now I know to take it into consideration. |list| already returns the length of the list (according to the documentation - i haven't had chance to try it out yet) so that shouldn't need to be added. Sorry but I don't have the quote below as I deleted the email :( Cheers, Will ----- Original Message ----- From: "jon klein" <[email protected]> To: <[email protected]> Sent: Monday, February 02, 2004 1:03 AM Subject: Re: [breve] Comparing lists > > 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 > _______________________________________________ breve mailing list [email protected] http://www.spiderland.org/mailman/listinfo/breve