[Python-ideas] Async API: some code to review

Antoine Pitrou solipsis at pitrou.net
Tue Oct 30 20:31:01 CET 2012


On Tue, 30 Oct 2012 10:34:12 -0700
Guido van Rossum <guido at python.org> wrote:
> >
> > Speaking of protocol tests, what would those look like? How do I yell, say,
> > "POST /blah HTTP/1.1\r\n" from a transport? Presumably I'd have a mock
> > transport, and call the handler with that? (I realize it's early days to be
> > thinking that far ahead; I'm just trying to figure out how I can contribute
> > a good protocol definition to all of this).
> 
> Actually I think the ease of writing tests should definitely be taken
> into account when designing the APIs here.

+11 !

Regards

Antoine.





More information about the Python-ideas mailing list