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

2018-01-19 Thread Terry Reedy
On 1/19/2018 11:06 PM, Nick Coghlan wrote: On 20 January 2018 at 02:32, Random832 wrote: 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

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

2018-01-19 Thread Nick Coghlan
On 20 January 2018 at 02:32, Random832 wrote: > 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,

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

2018-01-19 Thread Brett Cannon
On Fri, 19 Jan 2018 at 01:30 Pablo Galindo Salgado wrote: > Hello everyone, > > In today's episode of exposing useful Linux system calls I am exposing > preadv2 in this PR: > > https://github.com/python/cpython/pull/5239 > > as requested in this issue: > >

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

2018-01-19 Thread Random832
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

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

2018-01-19 Thread Pablo Galindo Salgado
Hello everyone, In today's episode of exposing useful Linux system calls I am exposing preadv2 in this PR: https://github.com/python/cpython/pull/5239 as requested in this issue: https://bugs.python.org/issue31368 As njsmith has commented in the PR, preadv2 only exists because regular preadv