(cls)
return side1, side2
factory method that creates two pairs of anonymous pipes, and 
        creates two PipeStreams over them. Useful for ``fork()``.
        
        :returns: a tuple of two :class:`PipeStream` instances
factory method that creates two pairs of anonymous pipes, and 
        creates two PipeStreams over them. Useful for ``fork()``.
        
        :returns: a tuple of two :class:`PipeStream` instances
factory method that creates two pairs of anonymous pipes and creates two PipeStreams over them . Useful for fork () . : returns : a tuple of two : class : PipeStream instances
def create_pair(cls):
        """factory method that creates two pairs of anonymous pipes, and 
        creates two PipeStreams over them. Useful for ``fork()``.
        
        :returns: a tuple of two :class:`PipeStream` instances
        """
        r1, w1 = os.pipe()
        r2, w2 = os.pipe()
        side1 = cls(os.fdopen(r1, "rb"), os.fdopen(w2, "wb"))
        side2 = cls(os.fdopen(r2, "rb"), os.fdopen(w1, "wb"))
        return side1, side2
def create_pair ( cls ) : r1 , w1 = os . pipe ( ) r2 , w2 = os . pipe ( ) side1 = cls ( os . fdopen ( r1 , "rb" ) , os . fdopen ( w2 , "wb" ) ) side2 = cls ( os . fdopen ( r2 , "rb" ) , os . fdopen ( w1 , "wb" ) ) return side1 , side2