◐ Shell
clean mode source ↗

gh-103134: Update multiprocessing.managers.ListProxy and multiprocessing.managers.DictProxy by invisibleroads · Pull Request #103133 · python/cpython

```
from multiprocessing import Manager
with Manager() as manager:
    xs = manager.list()
    xs.clear()
```

For now, we can use the workaround `del xs[:]`

@invisibleroads invisibleroads changed the title Add support for manager.list().clear() gh-103134: Add support for manager.list().clear()

Mar 30, 2023

terryjreedy

terryjreedy

terryjreedy

```
from multiprocessing import Manager
with Manager() as manager:
    xs = manager.list()
    xs.clear
    xs.copy
    d = manager.dict()
    d | {}  # __or__
    {} | d  # __ror__
    reversed(d)  # __reversed__
    d.fromkeys
```

suggested by @terryjreedy
tested manually in Python 3.10.8

python#103134
…Hrn91.rst

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

@invisibleroads

@invisibleroads

@invisibleroads invisibleroads changed the title gh-103134: Add support for manager.list().clear() gh-103134: Update multiprocessing.managers.ListProxy and multiprocessing.managers.DictProxy

Mar 31, 2023

serhiy-storchaka

@invisibleroads

@invisibleroads

@invisibleroads

Check that the dictionary returned by dict_proxy.from_keys is a dict as defined in dict.from_keys as requested by @encukou

@encukou

estyxx pushed a commit to estyxx/cpython that referenced this pull request

Jul 17, 2024

donbarbos added a commit to donbarbos/typeshed that referenced this pull request

Feb 14, 2026