Re: [BangPypers] Beginner help

2010-10-04 Thread JAGANADH G
On Tue, Oct 5, 2010 at 12:24 PM, Anil C R wrote: > I would say no IDE... IMO it's not very good starting to learn a language > with an IDE. Been long since I wrote code in Windows but you should have > nice ones Notepad++ was nice. > > Which IDE is good for Python is a difficult question I observ

Re: [BangPypers] Beginner help

2010-10-04 Thread Anil C R
I would say no IDE... IMO it's not very good starting to learn a language with an IDE. Been long since I wrote code in Windows but you should have nice ones Notepad++ was nice. Anil, PS: do not send me mails if you do this: http://theoatmeal.com/comics/email ___

Re: [BangPypers] BangPypers Digest, Vol 38, Issue 2

2010-10-04 Thread Vikram Kamath
Well...rather than an IDE, you should probably just use a good python editor and then use the command line.The 2 best python editors (in my opinion are) 1.Jedit http://www.jedit.org/index.php?page=download 2.Kate http://kate-editor.org/ On Sat, Oct 2, 2010 at 3:30 PM, wrote: > Send BangPypers ma

Re: [BangPypers] Latest Cricket News in Command Line

2010-10-04 Thread Noufal Ibrahim
On Tue, Oct 05 2010, Umar Shah wrote: [...] >> thanks for the quick stats, although i prefer in for the type >> compatibility > now i have 1 more reason in favour of using in :) [...] People talk about Pythonicity and one of the ways to quantify it is to say that "something is Pythonic if the m

Re: [BangPypers] Latest Cricket News in Command Line

2010-10-04 Thread Umar Shah
On Tue, Oct 5, 2010 at 12:04 AM, Noufal Ibrahim wrote: > 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.22202

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]: 0.3239340

Re: [BangPypers] Latest Cricket News in Command Line

2010-10-04 Thread Nitin Dahra
On 4 October 2010 18:43, Gopalakrishnan Subramani wrote: > I don't think, I will be giving you the complete working code, here is > sample one. > > sites = { > 0: "<>", > 1: "<>" > } > > X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your choice: > ') > > if sites.has_key((int(X))

Re: [BangPypers] Latest Cricket News in Command Line

2010-10-04 Thread Gopalakrishnan Subramani
I don't think, I will be giving you the complete working code, here is sample one. sites = { 0: "<>", 1: "<>" } X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your choice: ') if sites.has_key((int(X)): news_feed = feedparser.parse(sites[int(X)]) for entry in news_feed.en

Re: [BangPypers] feedparser

2010-10-04 Thread Arulalan T
2010/10/3 Noufal Ibrahim > On Sun, Oct 03 2010, Avinash TM wrote: > > > How to install feedparser in 'eclipse environment' of python? > > [...] > > First thing (after you do an installation) is to make sure that it works > properly in with the regular interpreter (honouring any virtualenv or > ot