summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2012-05-29 11:01:45 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2012-05-29 11:01:45 (GMT)
commit1074a9294bf010a8f167299e541a2860638b2e5f (patch)
tree42b742224a429c33fa2811e4f7032c280dc1c0d8 /Lib
parentecdc076695bbe138a456a359c168c19e8e3de147 (diff)
downloadcpython-1074a9294bf010a8f167299e541a2860638b2e5f.zip
cpython-1074a9294bf010a8f167299e541a2860638b2e5f.tar.gz
cpython-1074a9294bf010a8f167299e541a2860638b2e5f.tar.bz2
Remove __getslice__, __setslice__, __delslice__ methods from proxies
Proxy classes in multiprocessing do not need these methods in Python 3.x.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/multiprocessing/managers.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index 36bcf8f..6a7dccb 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -1035,12 +1035,11 @@ class ValueProxy(BaseProxy):
BaseListProxy = MakeProxyType('BaseListProxy', (
- '__add__', '__contains__', '__delitem__', '__delslice__',
- '__getitem__', '__getslice__', '__len__', '__mul__',
- '__reversed__', '__rmul__', '__setitem__', '__setslice__',
+ '__add__', '__contains__', '__delitem__', '__getitem__', '__len__',
+ '__mul__', '__reversed__', '__rmul__', '__setitem__',
'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove',
'reverse', 'sort', '__imul__'
- )) # XXX __getslice__ and __setslice__ unneeded in Py3.0
+ ))
class ListProxy(BaseListProxy):
def __iadd__(self, value):
self._callmethod('extend', (value,))
@@ -1058,8 +1057,8 @@ DictProxy = MakeProxyType('DictProxy', (
ArrayProxy = MakeProxyType('ArrayProxy', (
- '__len__', '__getitem__', '__setitem__', '__getslice__', '__setslice__'
- )) # XXX __getslice__ and __setslice__ unneeded in Py3.0
+ '__len__', '__getitem__', '__setitem__'
+ ))
PoolProxy = MakeProxyType('PoolProxy', (