[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Speaking of which, it seems this is a duplicate of issue 10527. -- ___ Python tracker ___ ___ Pyt

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Do you mean at the C level? No, Python of course. > poll(), unlike select(), does not have to scan an fd_set > (of 1024 bits?) so I would have expected it to be faster if anything. That might be true in a continuous loop (e.g. a reactor). Judging from wh

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Richard Oudkerk
Richard Oudkerk added the comment: > select() other than being supported on all platforms has the advantage of > being simple and quick to use (you just call it once by passing a set of fds > and then you're done). Do you mean at the C level? Wouldn't you just do struct pollfd pfd = {fd, P

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: On one hand this seems reasonable to me, on the other hand I'm not sure. select() other than being supported on all platforms has the advantage of being simple and quick to use (you just call it once by passing a set of fds and then you're done). poll() / e

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list ma

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread William Edwards
New submission from William Edwards: If you have 1024 file descriptors already open, the file descriptors created internally in multiprocessing.Queue will be beyond 1024 and the select() call buried deep in the Queue will throw an exception. In fact, all uses of select() in the Python libs sho