[PD-dev] pyx shell replacement

B. Bogart ben at ekran.org
Tue Jan 29 00:52:21 CET 2008


Hi Thomas!

I have something working, but looks like I need to use os.popen4 to
capture the output.

Ah, the map trick is much more concise than a for loop.

I may be done soon enough, hope I'm not overdoing too much of someone
else's work, since I think shell needs a stable replacement!

.b.

Thomas Grill wrote:
> 
> Am 29.01.2008 um 00:20 schrieb Thomas Grill:
> 
>>>
>>
>> Hi,
>>
>>> I figured something that runs os.system() on an arbitrary string would
>>> be a good enough start, though coercing the _anything_ *args into a
>>> string seems to be challenging me.
>>
>> do you mean "".join(map(str,*args))  ?
> 
> no sorry, if args is a sequence i think you rather mean
> 
> os.system(" ".join(map(str,args)))
> 
> In this case the arguments are separated by spaces.
> 
> gr~~~
> 
> -- 
> Thomas Grill
> http://grrrr.org
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev





More information about the Pd-dev mailing list