Message306388
> 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. |
|
| Date |
User |
Action |
Args |
| 2017-11-16 17:17:11 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, pitrou, vstinner, asvetlov, Ben.Darnell |
| 2017-11-16 17:17:11 | yselivanov | set | messageid: <1510852631.36.0.213398074469.issue32038@psf.upfronthosting.co.za> |
| 2017-11-16 17:17:11 | yselivanov | link | issue32038 messages |
| 2017-11-16 17:17:11 | yselivanov | create | |
|