How to read space separated file in python?

ganesh gajre ginovation at gmail.com
Sat Nov 22 02:18:33 EST 2008


Hey Steve and Joe ,
Thank you very much.
There is yet little problem. But sure all the Pythonist will help me in
that.

Ginovation,
"Every thing is impossible unless you make it possible"


On Sat, Nov 22, 2008 at 5:10 AM, Steve Holden <steve at holdenweb.com> wrote:

> Joe Strout wrote:
> [...]
> > Partition handles these cases correctly (at least, within the OP's
> > specification that the value of "b" should be whatever comes after the
> > first space).
>
> I believe if you read the OP's post again you will see that he specified
> two non-space items per line.
>
> You really *love* being right, don't you? ;-) You say partition "...
> better encodes the intention, which is to split only on the first space
> in the line, rather than on every space". Your mind-reading abilities
> are clearly superior to mine.
>
> Anyway, sorry to have told you something you already knew. It's true
> that partition has its place, and is too often overlooked. Particularly
> by me.
>
> regards
>  Steve
> --
> Steve Holden        +1 571 484 6266   +1 800 494 3119
> Holden Web LLC              http://www.holdenweb.com/
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081122/02f36914/attachment-0001.html>


More information about the Python-list mailing list