New submission from Benjamin Peterson <[email protected]>:

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 <[email protected]>
<https://bugs.python.org/issue32441>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to