Antoine Pitrou added the comment: > > Didn't you forget to upload it? > > I wanted to have answer to my questions first :-):
Ah, indeed, sorry! > 1) In the documentation, I don't know how to best refer to files > object registered: is "file descriptor" OK, or is it too low-level? > Otherwise I'd be tempted to use just "file", but then this doesn't > include sockets, pipes, etc. Or maybe "file object"/"file-like > object"? "file object" and "file-like object" are the convention used in the docs: http://docs.python.org/dev/glossary.html#term-file-object That said, if the APIs also accept file descriptors, it must be mentioned. > i.e. have to unpack it for no reason. That doesn't seem much of a concern, does it? Perhaps there can be two separate methods, select() and select_with_data(), but that sounds a bit overkill. > 3) Concerning get_info(): right now the signature is: > get_info(): fileobj -> (events, data) > > Wouldn't it be better to just return the whole key instead [...] No opinion :-) ---------- _______________________________________ 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