[Python-ideas] WSAPoll and tulip
Antoine Pitrou
solipsis at pitrou.net
Tue Nov 27 15:42:04 CET 2012
Hi,
Le Tue, 27 Nov 2012 07:33:25 -0500,
Trent Nelson <trent at snakebite.org> a écrit :
> So, it basically works. poll() on Windows, who would have
> thought.
>
> It's almost impossible to test with our current infrastructure;
> all our unit tests seem to pass pipes and other
> non-Winsock-backed-socks to poll(), which, like select()-on-Windows,
> isn't supported.
Well, then you should write new tests that don't rely on pipes.
There's no reason it can't be done, and there are already lots of
examples of tests using TCP sockets in our test suite. It will also be
a nice improvement to the current test suite for Unix platforms.
> Visual Studio's debugger to try figure out what the heck was going
> on. I believe the `yield from` aspect made that so much more of
> an arduous affair -- one moment I'm in selectmodule.c's getaddrinfo(),
> then I'm suddenly deep in the bowels of some cryptic eval frame
> black magic, then one 'step' later, I'm over in some completely
> different part of selectmodule.c, and so on.
I'm not sure why you're using Visual Studio to debug Python code?
It sounds like you want something higher-level, e.g. Python print()
calls or pdb.
Regards
Antoine.
More information about the Python-ideas
mailing list