<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt;color:#000000;"><div align="left">Hi All,<br><br>This is my first mail to python-list.<br><br>I just want to propose the idea of introducing a new method for the List Object in similar lines of Dictionary Object has_key method.<br><br>See my below code, It always produces the ValueError, if I want to check whether an item is present or not, then they is no method in the List Object (do a "dir(list)").<br><br>So., Is it not good, to have a method in List Object, may be something like <span style="font-weight: bold;">has_item</span> to check whether a item is present or not?<br><br>#============== CODE ==============================<br>partsOfMyName = ['Python', 'Perl', 'PHP', 'MySQL'];<br>## strSearchKey = 'Perl';<br>strSearchKey = 'Prl';<br><br>indexofKey =
 partsOfMyName.index(strSearchKey);<br>print 'Index of search key: %s:  %d'%(strSearchKey, indexofKey);<br><br>Thanks<br>Venkata Rama Krishna Boddu</div>  <font size="2" color="#008080"></font></div><br>


      <!--3--><hr size=1></hr> Explore and discover exciting holidays and getaways with Yahoo! India Travel <a href="http://in.rd.yahoo.com/tagline_Travel_1/*http://in.travel.yahoo.com/"> Click here!</a></body></html>