Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: hs.py = run an exec and pipe back the result as a member of a list
'2+
2/25/2010 4:25:00 PM
oops the code was wrong .. sorry
import popen2
wave = []
for frame in range(890, 1010):
wave.append(int(popen2.Popen3('./hascillator01 ' +
str(frame)).fromchild.readline()))
print wave
On Fri, Feb 26, 2010 at 1:22 AM, '2+ <electriclightheads@gmail.com> wrote:
> did this for hascillator01 that i ghc-ed from hascillator01.hs into ./
>
> import popen2
>
> wave = []
> for frame in range(890, 1010):
> wave.append(int(popen2.Popen3('./hascillator01 ' +
> str(frame)).fromchild.readline()))
> print wave
>
> hascillator01 takes int and returns another int
> so yes this became a [ints] and that is what i expected
> but also yes it is so slow
> any cooler way to do it?
> now am reading the suprocess's doc .. but a bit hard to get it
>
> --
> SaRiGaMa's Oil Vending Orchestra
> is podcasting:
>
http://sarigama.namaste.jp/podca...
>
--
SaRiGaMa's Oil Vending Orchestra
is podcasting:
http://sarigama.namaste.jp/podca...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: hs.py = run an exec and pipe back the result as a member of a list
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password