[Async-sig] SansIO (Was: PEP: asynchronous generators)
Cory Benfield
cory at lukasa.co.uk
Tue Aug 9 13:49:34 EDT 2016
> On 9 Aug 2016, at 18:35, Brett Cannon <brett at python.org> wrote:
>
>> Necessarily, if you can test it with tests that don’t involve writing mocks for anything in the socket, select, selectors, or asyncio modules, you’re probably in a pretty good place to be arguing that you’re I/O free. If your tests only use the public interfaces, then you’re totally set.
>
> Which "public interfaces" are you referring to? For me, any I/O-free library shouldn't be driving the I/O, just a producer/consumer of data. That means even if something follows e.g. the public interface of a socket that it wouldn't qualify as that suggests the library gets to make the call on when the I/O occurs and that you expose a socket for it to use.
Sorry, I just meant the public API of the no-I/O library.
Cory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/async-sig/attachments/20160809/963199f8/attachment.html>
More information about the Async-sig
mailing list