All pastes #988581 Raw Edit

Anonymous

public python v1 · immutable
#988581 ·published 2008-04-17 18:49 UTC
rendered paste body
   def _create(self, process):        self.__process = subprocess.Popen(process, stdin=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True)        self.__stdin = self.__process.stdin        self.__stdout = self.__process.stdout     def _listen2(self):        (rr, wr, er) = select.select([self.__stdout], [], [])        print self.__stdout.readlines()