Newsgroups: comp.lang.python
From: castiro...@gmail.com
Date: Tue, 13 May 2008 03:57:35 -0700 (PDT)
Local: Tues, May 13 2008 6:57 am
Subject: Re: Best way to delimit a list?
On May 13, 5:46 am, dannywebs...@googlemail.com wrote:
> On May 13, 11:28 am, dannywebs...@googlemail.com wrote: I do indeed write a pretty fine real-time, low-bandwidth, game. It is > > Hi - I have a list returned from popen/readlines, and am wondering how > > so far: > > >>> f=os.open("./get_hostnames").readlines > > returns ['host1 host2 host3 ... hostN\n]' > > i'd like to be in a position to iterate through these, grabbing each > > >>> f=str(f) > > ["['host1","host2", ... ,"hostN\n']"] > > Any help is highly appreciated > > ta > > dan. > I did indeed mean "os.popen", no "os.open"- Hide quoted text - > - Show quoted text - like real-time chess, and seen the movie, Tron. Can't the P2Ps zip up in an hour? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||