comparison python/multiproc.py @ 603:bd30deecdf4a

STUB: python/multiproc.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 30 Jan 2014 16:22:26 -0800
parents 330e3435a7d7
children 5b561c7b2005
comparison
equal deleted inserted replaced
602:330e3435a7d7 603:bd30deecdf4a
11 import time 11 import time
12 import tempfile 12 import tempfile
13 13
14 class Process(subprocess.Popen): 14 class Process(subprocess.Popen):
15 """why would you name a subprocess object Popen?""" 15 """why would you name a subprocess object Popen?"""
16
17 defaults = {'buffsize': 'line buffered'
18 }
16 19
17 def __init__(self, *args, **kwargs): 20 def __init__(self, *args, **kwargs):
18 self.output = tempfile.SpooledTemporaryFile() 21 self.output = tempfile.SpooledTemporaryFile()
19 subprocess.Popen.__init__(self, *args, **kwargs) 22 subprocess.Popen.__init__(self, *args, **kwargs)
20 # TODO: finish 23 # TODO: finish