[Python-ideas] Async API
Yury Selivanov
yselivanov.ml at gmail.com
Thu Oct 25 22:51:09 CEST 2012
On 2012-10-25, at 4:39 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> 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).
Right, good catch on mocking sockets!
As for the issues: I think that the parameter name should be the
same/very consistent, and surely keyword-only.
> 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.
We'll see. I'll start with a detailed post on python-ideas, and
if the PEP looks like an overkill - I'd be glad to skip the PEP step.
Thanks,
Yury
More information about the Python-ideas
mailing list