Skip to content

Multiprocessing Pipe is missing default value for parameter duplex #142067

@valbaca

Description

@valbaca

Documentation

The documentation for Pipe reads:

multiprocessing.Pipe([duplex])
Returns a pair (conn1, conn2) of [Connection](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.connection.Connection) objects representing the ends of a pipe.

If duplex is True (the default) then the pipe is bidirectional. If duplex is False then the pipe is unidirectional: conn1 can only be used for receiving messages and conn2 can only be used for sending messages.

The documentation mentions that the default value for duplex is True but it's not listed in the constructor signature of multiprocessing.Pipe([duplex])

It should read:

multiprocessing.Pipe([duplex=True])

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions