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 yselivanov
Recipients Ben.Darnell, asvetlov, gvanrossum, pitrou, vstinner, yselivanov
Date 2017-11-16.17:17:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510852631.36.0.213398074469.issue32038@psf.upfronthosting.co.za>
In-reply-to
Content
> OK, then maybe socket objects should get a dup() method that just
increments the ref counter, and that would be the public API you're looking
for?

"dup()" returns a new socket object, but here we only want to protect the original one.

Maybe just 'sock.inc_io_ref()' and 'sock.dec_io_ref()'?  OTOH using the current private socket API in asyncio and uvloop doesn't really scare me as long as it works, so keeping the status quo is also OK.
History
Date User Action Args
2017-11-16 17:17:11yselivanovsetrecipients: + yselivanov, gvanrossum, pitrou, vstinner, asvetlov, Ben.Darnell
2017-11-16 17:17:11yselivanovsetmessageid: <1510852631.36.0.213398074469.issue32038@psf.upfronthosting.co.za>
2017-11-16 17:17:11yselivanovlinkissue32038 messages
2017-11-16 17:17:11yselivanovcreate