Re: getting words from readline

2005-09-11 Thread Adam
Ouch. That is simple with .split I must have got confused amongst slice re etc. searching searching. Thanks folks. Painless. -- http://mail.python.org/mailman/listinfo/python-list

Re: getting words from readline

2005-09-10 Thread Steve Holden
Adam wrote: > How is best to extract word strings from a > line = infile.readline() > > I wish to quickly check the first word of > each line of a text file. > > Indeed, How do I break a lineinput() line > into component words (separate by spaces etc) ? > > Should I be looking at; > Re Pa

Re: getting words from readline

2005-09-10 Thread Do Re Mi chel La Si Do
Hi ! Look : .split() @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

getting words from readline

2005-09-10 Thread Adam
How is best to extract word strings from a line = infile.readline() I wish to quickly check the first word of each line of a text file. Indeed, How do I break a lineinput() line into component words (separate by spaces etc) ? Should I be looking at; Re Parser Slice StringIO ? Any help