Message 44725 - Python tracker (original) (raw)

Plug popen2.popen[234] leak (see bug #768649 for discussion). Handle os.{pipe,fork} exceptions (see bug #761888). Change class variables into instance variables, allowing following code to work properly:

from popen2 import Popen3 p1 = Popen3('ls') p1.fromchild.read() Popen3('ls').fromchild.read() Popen3('ls').fromchild.read() p1.wait()

Update docstrings to mention popen4 and warn about mixing Popen3 objects and threading. Expand on MAX_FD comment.