[issue32441] os.dup2 should return the new fd

Benjamin Peterson report at bugs.python.org
Thu Dec 28 12:44:43 EST 2017


New submission from Benjamin Peterson <benjamin at python.org>:

os.dup2 currently always None. However, the underlying standard Unix function returns the new file descriptor (i.e., the second argument) on success. We should follow that convention, too.

----------
components: Extension Modules
keywords: easy
messages: 309135
nosy: benjamin.peterson
priority: low
severity: normal
stage: needs patch
status: open
title: os.dup2 should return the new fd
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32441>
_______________________________________


More information about the Python-bugs-list mailing list