Author giampaolo.rodola
Recipients Erez.Sh, William.Edwards, asksol, danken, dmalcolm, giampaolo.rodola, jnoller, neologix, pitrou, sbt, synapse, vstinner
Date 2012-12-28.20:11:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356725482.65.0.379158192097.issue10527@psf.upfronthosting.co.za>
In-reply-to
Content
New patch in attachment.
It always uses poll() and maintains and internal fd/Connection map.
I get one failure due to the returned list being sorted differently than when using select() though.


======================================================================
FAIL: test_wait_integer (__main__.TestWait)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_multiprocessing.py", line 3277, in test_wait_integer
    self.assertEqual(res, [p.sentinel, b])
AssertionError: Lists differ: [<multiprocessing.connection.C... != [7, <multiprocessing.connectio...

First differing element 0:
<multiprocessing.connection.Connection object at 0x7f8924fccd30>
7

- [<multiprocessing.connection.Connection object at 0x7f8924fccd30>, 7]
?                                                                  ---

+ [7, <multiprocessing.connection.Connection object at 0x7f8924fccd30>]
?  +++




I don't how important this is.
If it's not tests can be adapted accordingly.
History
Date User Action Args
2012-12-28 20:11:22giampaolo.rodolasetrecipients: + giampaolo.rodola, pitrou, vstinner, jnoller, synapse, asksol, dmalcolm, neologix, danken, Erez.Sh, sbt, William.Edwards
2012-12-28 20:11:22giampaolo.rodolasetmessageid: <1356725482.65.0.379158192097.issue10527@psf.upfronthosting.co.za>
2012-12-28 20:11:22giampaolo.rodolalinkissue10527 messages
2012-12-28 20:11:22giampaolo.rodolacreate