MCPcopy Index your code
hub / github.com/RustPython/RustPython / ShareableList

Method ShareableList

Lib/multiprocessing/managers.py:1387–1397  ·  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

1385 return sms
1386
1387 def ShareableList(self, sequence):
1388 """Returns a new ShareableList instance populated with the values
1389 from the input sequence, to be tracked by the manager."""
1390 with self._Client(self._address, authkey=self._authkey) as conn:
1391 sl = shared_memory.ShareableList(sequence)
1392 try:
1393 dispatch(conn, None, 'track_segment', (sl.shm.name,))
1394 except BaseException as e:
1395 sl.shm.unlink()
1396 raise e
1397 return sl

Calls 2

dispatchFunction · 0.70
unlinkMethod · 0.45