Finding index of list item which is assembled by Fraction class
<p>I'm trying to find the index of specifyed element in my list that looks like this for example 
Which is generated by xrange with Fractional.</p>

<pre><code>&gt;&gt; print lst
[Fraction(1, 8), Fraction(1, 7), Fraction(1, 6), Fraction(1, 5), Fraction(1, 4),          Fraction(2, 7), Fraction(1, 3), Fraction(3, 8), Fraction(2, 5), Fraction(3, 7), Fraction(1,   2), Fraction(4, 7), Fraction(3, 5), Fraction(5, 8), Fraction(2, 3), Fraction(5, 7), Fraction(3, 4), Fraction(4, 5), Fraction(5, 6), Fraction(6, 7), Fraction(7, 8)] 
</code></pre>

<p>I have been trying everything. 
Why doesn't this work. </p>

<pre><code>lst.index(1,6) 
</code></pre>

<p>or </p>

<pre><code>lst.index( Fraction(1,6) )
</code></pre>

<p>and I have tried many more but I always get</p>

<pre><code>print lst.index(Fraction(1,6))
ValueError: Fraction(1, 6) is not in list
</code></pre>

<p>Any advice ?</p>

<p>More on how I created the list : </p>

<pre><code>for d in xrange(1,limit+1):
        for n in xrange(1,limit+1):
                x = Fraction(n,d)
                lst.append(x)
</code></pre>
