A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-January/151834.html below:

[Python-Dev] Exposing different versions of a system call in Python

[Python-Dev] Exposing different versions of a system call in PythonRandom832 random832 at fastmail.com
Fri Jan 19 11:32:19 EST 2018
On Fri, Jan 19, 2018, at 04:28, Pablo Galindo Salgado wrote:
> On the other side, we have pipe and pipe2 as an example of exposing two
> versions when this situation happens.
> 
> The question is:
> 
> What is preferable, exposing both functions or augment the old one?

A large number, possibly a majority, of system calls in the os module, have "dir_fd" arguments that cause them to call the *at counterpart of the underlying system call. And chdir can also be called with a file descriptor, which will call fchdir (though there is also a fchdir function) I don't know why pipe2 was implemented as a separate call.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4