Issue71

Title Allow self-sending
Type wish Status unread
Importance
Superseder Nosy List mg
Assigned To Keywords design

Created on 2008-10-08.15:50:45 by mg, last changed 2008-10-08.15:50:45 by mg.

Messages
msg263 (view) Author: mg Date: 2008-10-08.15:50:45
At some point it became illegal to send data to oneself, and so the
code looks like this in several places (this is from open):

  if peer_id == self.id:
      d = Share(self, share.field, (share.field(peer_id), share))
  else:
      d = self._expect_share(peer_id, share.field)

I think the rationale for disallowing self-sending is that the players
have no ShareExchanger for themselves, and so one cannot _expect_data
or sendData to oneself.

But it should still be possible to clean up the code by handling this
in one central place. Maybe like it is done in _exchange_shares.
History
Date User Action Args
2008-10-08 15:50:45mgcreate