[issue29332] Uniform SelectSelector._select behavior

2017-01-20 Thread Wen Adam
Wen Adam added the comment: I know it works on python3.4, but black magic still exists in selectors lib,and 3rd-party module have to prepare two function to make compatibility. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29332] Uniform SelectSelector._select behavior

2017-01-20 Thread Wen Adam
Wen Adam added the comment: Thx for your replying, Peksag. I encountered this problem is really because of Gevent and Selector34. Gevent fixed this issue but only works for python3.4+(https://github.com/gevent/gevent/blob/master/src/gevent/monkey.py#L497) by a tricking way. python 2.x still

[issue29332] Uniform SelectSelector._select behavior

2017-01-20 Thread Wen Adam
New submission from Wen Adam: SelectSelector._select is differently on different platforms. On win32, SelectSelector._select is a unbound/bound method and pass instance as the first argument, but on *nix, SelectSelector._select is a builtin_function_or_method(Although self.select still works