Google Groups Home
Help | Sign in
Message from discussion Best way to delimit a list?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Gabriel Genellina  
View profile
 More options May 13, 7:18 am
Newsgroups: comp.lang.python
From: "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
Date: Tue, 13 May 2008 08:18:59 -0300
Local: Tues, May 13 2008 7:18 am
Subject: Re: Best way to delimit a list?
En Tue, 13 May 2008 07:46:45 -0300, <dannywebs...@googlemail.com> escribió:

> On May 13, 11:28 am, dannywebs...@googlemail.com wrote:
>> Hi - I have a list returned from popen/readlines, and am wondering how
>> to go about iterating over each item which was returned (rather than
>> currently having the whole lot returned).

>> >>> f=os.open("./get_hostnames").readlines

> I did indeed mean "os.popen", no "os.open"

Ouch, replace open with popen an my example is valid (but to get the  
meaning I intended to write, replace os.open with open...)

--
Gabriel Genellina


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google