Issue #12196: Make os.pipe2() flags argument mandatory.

This commit is contained in:
Charles-François Natali 2011-06-06 19:49:47 +02:00
parent 34b312e33d
commit 368f34bb4b
3 changed files with 14 additions and 13 deletions

View file

@ -1019,11 +1019,11 @@ as internal buffering of data.
Availability: Unix, Windows.
.. function:: pipe2(flags=0)
.. function:: pipe2(flags)
Create a pipe with *flags* set atomically.
*flags* is optional and can be constructed by ORing together zero or more of
these values: :data:`O_NONBLOCK`, :data:`O_CLOEXEC`.
*flags* can be constructed by ORing together one or more of these values:
:data:`O_NONBLOCK`, :data:`O_CLOEXEC`.
Return a pair of file descriptors ``(r, w)`` usable for reading and writing,
respectively.