[Python-ideas] Async API

Terry Reedy tjreedy at udel.edu
Thu Oct 25 22:39:40 CEST 2012


On 10/25/2012 12:10 PM, Yury Selivanov wrote:

> - And what's your opinion on writing a PEP about making it possible
> to pass a custom socket-factory to stdlib objects?

I think this is probably a good idea quite aside from async issues. For 
one thing, it would make testing with a mock-socket class easier. Issues 
to decide: name of parameter (should be same for all socket using 
classes); keyword only? (ditto).

I am not sure this needs a PEP. Most parameter additions are just 
tracker issues. But I would be worthwhile to decide on the details here 
first.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list