Re: find string in file

2008-03-14 Thread kaerbuhez
On 14 mar, 14:25, [EMAIL PROTECTED] wrote: > Hi friends !! > > I'm neophite about python, my target is to create a programa that > find a specific string in text file. > How can do it? > > Thanks > fel $ cat text.txt aaa bbb ccc ddd aaa bbb ccc ddd aaa bbb ccc ddd aaa eee bbb eee ccc eee ddd eee

Re: Python Documentation (should be better?)

2005-05-14 Thread kaerbuhez
bruno modulix a écrit : > > I fail to see why would it would be better to have to open a browser, go > to python.org, go to the doc, find the right link etc instead of just > typing dir(xxx) and/or help(xxx). > I fully agree with you. I just suspect that you are not more than me a web develo

Re: How "return" no return ?

2005-05-12 Thread kaerbuhez
Ximo a écrit : > I am doing my own interpreter with the Python languaje. > > Do you understand me? > I will do my best : I guess that you are about to write your own non python interpreter (I mean, it will interpret some language that is not Python) and your interpreter sadly writes "None" whe

Re: Find Items & Indices In A List...

2004-12-10 Thread kaerbuhez
<[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > For example, assuming that I have a list like: > > mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1, 10] > > I would like to find the indices of the elements in the list that are > equal > to 1 (in this case, the 1,2,3,4,9 elements ar