[Tutor] subprocess.call warning

Norman Khine norman at khine.net
Sun Oct 3 21:44:54 CEST 2010

hello, from the docs http://docs.python.org/library/subprocess.html i
see there is a WARNING about deadlock when using the subprocess.call.
in my code i have this


the first calls the 'sox' library which joins all the .wav files into
one file and then i use the 'wav2swf' library to create a SWF output
of the file.

can the code be improved?


˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
ǝq s,ʇǝן ʇǝʎ
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )

More information about the Tutor mailing list