(cmd)
return Popen(cmd, stdin=PIPE, stdout=PIPE, close_fds=True)
Create a :py:class:`subprocess.Popen` instance.

    It calls `Popen(cmd, stdin=PIPE, stdout=PIPE, close_fds=True)`.

    Args:
        cmd (str): The command to use in the call to Popen.
    Returns:
        subprocess.Popen: The `Popen` object.
Create a :py:class:`subprocess.Popen` instance.
Create a : py : class : subprocess . Popen instance .
def popen(cmd):
    """Create a :py:class:`subprocess.Popen` instance.

    It calls `Popen(cmd, stdin=PIPE, stdout=PIPE, close_fds=True)`.

    Args:
        cmd (str): The command to use in the call to Popen.
    Returns:
        subprocess.Popen: The `Popen` object.

    """
    if os.name == 'nt':
        return Popen(cmd, stdin=PIPE, stdout=PIPE)
    return Popen(cmd, stdin=PIPE, stdout=PIPE, close_fds=True)
def popen ( cmd ) : if os . name == 'nt' : return Popen ( cmd , stdin = PIPE , stdout = PIPE ) return Popen ( cmd , stdin = PIPE , stdout = PIPE , close_fds = True )