mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Issue #12196: Make os.pipe2() flags argument mandatory.
This commit is contained in:
parent
34b312e33d
commit
368f34bb4b
3 changed files with 14 additions and 13 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue