Re: [BangPypers] Latest Cricket News in Command Line

2010-10-04 Thread Nitin Dahra
On 4 October 2010 18:43, Gopalakrishnan Subramani gopalakrishnan.subram...@gmail.com wrote: I don't think, I will be giving you the complete working code, here is sample one. sites = { 0: BBCLink, 1: CricInfoLink } X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your

Re: [BangPypers] Latest Cricket News in Command Line

2010-10-04 Thread Noufal Ibrahim
On Mon, Oct 04 2010, Nitin Dahra wrote: [...] Apparently, 'in' is also faster than 'has_key' [...] A few quick numbers. In [2]: foo = {} # Without the key In [12]: timeit.timeit(lambda: 2 in foo) Out[12]: 0.2220299243927002 In [13]: timeit.timeit(lambda: foo.has_key(2)) Out[13]:

[BangPypers] Latest Cricket News in Command Line

2010-10-03 Thread Avinash TM
Hi All , I tried this simple code using 'feed parser'. May be you will find it useful. Am new to Python,any suggestions or new ideas on how we can improve this code. -Avinash ___ * * *Program : * #!