I have multiple objects, where any of them can serve my purpose.. However some objects might not have some dependencies. I can not tell before hand if the all the dependencies exsit. What i want to is begin processing from the 1st object, if no exception is raised, i am done.. if an exception is raised, the next object is tried, etc  Something like<div>
<br></div><div>objs = [... ]</div><div>try:</div><div>  obj = objs[0]</div><div>  obj.make()</div><div>except Exception, e:</div><div>  try:</div><div><div>      obj = objs[1]</div><div>      obj.make()</div></div><div>  except Exception, e:    </div>
<div>     try:</div><div><div>        obj = objs[2]</div><div>        obj.make()</div></div><div>     except Exception, e: </div><div>       continue</div><div><br></div><div>The problem is the length of the list of objs is variable... How can i do this?</div>
<div><br></div><div><br></div><div><div><div><div><br></div>-- <br><font style="color:rgb(0,51,0)" size="1"><b>Mob UG: +256 (0) 70 1735800 | NL +31 (0) 6 852 841 38 | Gtalk: jmwebaze |  skype: mwebazej | URL: <a href="http://www.astro.rug.nl/~jmwebaze" target="_blank">www.astro.rug.nl/~jmwebaze</a><br>
<br>/* Life runs on code */</b></font><br><br>
</div></div></div>