New GitHub issue #96215 from Kemsekov:<br>
<hr>
<pre>
# Feature or enhancement
I would like to pass a name for shared list from `SharedMemoryManager` but I apparently cannot do this.
```py
with SharedMemoryManager() as smm:
my_shared_list = smm.ShareableList(sequence=range(10),name="special name")
pass
```
What I get:
```
my_shared_list = smm.ShareableList(sequence=range(10),name="special name")
TypeError: SharedMemoryManager.ShareableList() got an unexpected keyword argument 'name'
```
# Possible solution
Just change method `ShareableList` in the bottom of [this source file](https://github.com/python/cpython/blob/a059395921e4402c13a860aaa8fc44fea2023aa3/Lib/multiprocessing/managers.py) to following:
```py
def ShareableList(self, sequence, name):
"""Returns a new ShareableList instance populated with the values
from the input sequence, to be tracked by the manager."""
with self._Client(self._address, authkey=self._authkey) as conn:
sl = shared_memory.ShareableList(sequence=sequence,name=name)
try:
dispatch(conn, None, 'track_segment', (sl.shm.name,))
except BaseException as e:
sl.shm.unlink()
raise e
return sl
```
# I wonder
Why this feature is not implemented from the very beggining?
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/96215">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>