Searching within a list of Objects in Python
<p>Lets assume the following object:</p>

<pre><code>class Test:
    id1 = ""
    id2 = ""
    id3 = ""

    def __init__(self,arg1,arg2,arg3):
        self.id1 = arg1
        self.id2 = arg2
        self.id3 = arg3
</code></pre>

<p>As it can be seen, this class must contain 3 unique ids.</p>

<pre><code>t = []
t.append(Test(200,201,193))
t.append(Test(403,221,213))
t.append(Test(3,523,2003))
</code></pre>

<p>Assuming the code above, what would be the easiest way for me to find the object with id1 = 403, id2 = 221, and id3 =213 in the list t?</p>

<p>Thanks in advance.</p>
