This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients StyXman, christian.heimes, martin.panter, neologix, vstinner
Date 2016-05-13.03:17:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463109476.76.0.108788784178.issue26826@psf.upfronthosting.co.za>
In-reply-to
Content
Another option could be to use Serhiy’s proposed partial keywords support in Issue 26282. It is not yet committed, but it looks like it will go ahead, and then you could make “in” and “out” positional-only parameters, and the rest keywords. But IMO “src” and “dst” is fine.

Also, dropping “flags” support seems reasonable. One benefit is that if Linux added an unexpected flag in the future that conflicts with Python’s assumptions, it could do weird stuff or crash Python. See Issue 24933 for example, where socket.recv(n, MSG_TRUNC) returns uninitialized data.

The latest patch looks pretty good to me. Is there a consensus yet to add it as a public function? Before this goes in, it would be good to have a test case.
History
Date User Action Args
2016-05-13 03:17:56martin.pantersetrecipients: + martin.panter, vstinner, christian.heimes, StyXman, neologix
2016-05-13 03:17:56martin.pantersetmessageid: <1463109476.76.0.108788784178.issue26826@psf.upfronthosting.co.za>
2016-05-13 03:17:56martin.panterlinkissue26826 messages
2016-05-13 03:17:56martin.pantercreate