[Python-ideas] Tulip patches

Guido van Rossum guido at python.org
Fri Dec 21 19:38:35 CET 2012


On Fri, Dec 21, 2012 at 10:09 AM, Felipe Cruz <felipecruz at loogica.net> wrote:
> I've been working in some tests to the pollers (Kqueue, Epoll ..) that may
> interest you guys.. My goal is to create test cases for each poller
> situation (ie: how to detect client disconnection with epoll and unix pipes?
> or tcp sockets..) and understand how all those pollers are different from
> each other and how we can map a generic events with all those possible
> underlying implementations.

That goal sounds great.

> I already  did some Epoll and Kqueue tests here:
> https://bitbucket.org/felipecruz/tulip/commits

Hm... Your clone is behind, a lot has changed since you made those
commits. You may have to merge from the main repo.

Specific comments:

- I prefer to use my existing test infrastructure rather than 3rd
party tools; dependencies in this early stage make it too hard for
people to experiment. (It's okay to add a rule to the Makefile to
invoke your favorite test discovery tool; but it's not okay to add
imports to the Python code that depends on a 3rd party test
framework.)

- Your code to add flags or eventmask to the events list seems
incomplete -- the UnixEventLoop doesn't expect poll() to return a
tuple so all my own tests break...

-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list