comparing two lists and returning "position"
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Jun 22 13:56:52 EDT 2007
In <1182534010.884992.119690 at u2g2000hsc.googlegroups.com>, hiro wrote:
> Hi once again, Charles.. I have tried your approach in my data set l2
> and it keeps crashing on me,
> bare in mind that I have a little over 10 million objects in my list
> (l2) and l1 contains around 4 thousand
> objects.. (i have enough ram in my computer so memory is not a
> problem)
>
> python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
> (Intel)] on win32
>
> error is : ValueError: list.index(x): x not in list
So you are saying you get this error with the value of `x` actually in the
list!? Somehow hard to believe.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list