Guido van Rossum added the comment: On Wed, Aug 21, 2013 at 2:37 AM, STINNER Victor <rep...@bugs.python.org>wrote:
> > STINNER Victor added the comment: > > I like the idea of renaming select to _select, and add Lib/select.py > for the high-level wrapper (Selector). In my opinion, adding a module > just for 5 classes is overkill. Selector classes are a very thin > abstraction over the low-level objects. A new module can be justified > for something more evolved, something like an event loop with > callbacks and a scheduler, something like the PEP 3156 (tulip) :-) > OK, I'm just going to impose my decision. I want a separate selectors.py. The rename business feels unpleasant, *and* the interface abstraction level is different. > This issue is for code written in Python. Is it a similar issue for > code written in C? internal_select_ex() of Modules/socketmodule.c and > check_socket_and_wait_for_timeout() of Modules/_ssl.c uses poll() and > select(). > Let's leave those alone. AFAIK they are mostly to simulate timeouts in *blocking* code. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16853> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com