<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
handler = object_type_dictionary[options.object_type] # look up the function<br>
handler() # call it<br>
<br>
The last two lines could also be merged into one<br>
<br>
object_type_dictionary[options.object_type]()<br>
<br>
but the first version may be clearer.<br><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks  for your valuable inputs all worked :)</div></div>