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
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
___
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
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
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
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
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))
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
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