MCPcopy Index your code
hub / github.com/python/cpython / ShareableList

Method ShareableList

Lib/multiprocessing/managers.py:1428–1438  ·  view source on GitHub ↗

Returns a new ShareableList instance populated with the values from the input sequence, to be tracked by the manager.

(self, sequence)

Source from the content-addressed store, hash-verified

1426 return sms
1427
1428 def ShareableList(self, sequence):
1429 """Returns a new ShareableList instance populated with the values
1430 from the input sequence, to be tracked by the manager."""
1431 with self._Client(self._address, authkey=self._authkey) as conn:
1432 sl = shared_memory.ShareableList(sequence)
1433 try:
1434 dispatch(conn, None, 'track_segment', (sl.shm.name,))
1435 except BaseException as e:
1436 sl.shm.unlink()
1437 raise e
1438 return sl

Calls 2

dispatchFunction · 0.70
unlinkMethod · 0.45