[Python-3000-checkins] r64524 - python/branches/py3k/Lib/multiprocessing/managers.py
benjamin.peterson
python-3000-checkins at python.org
Wed Jun 25 15:04:48 CEST 2008
Author: benjamin.peterson
Date: Wed Jun 25 15:04:48 2008
New Revision: 64524
Log:
make changes for py3k for multiprocessing
Modified:
python/branches/py3k/Lib/multiprocessing/managers.py
Modified: python/branches/py3k/Lib/multiprocessing/managers.py
==============================================================================
--- python/branches/py3k/Lib/multiprocessing/managers.py (original)
+++ python/branches/py3k/Lib/multiprocessing/managers.py Wed Jun 25 15:04:48 2008
@@ -41,7 +41,7 @@
copyreg.pickle(array.array, reduce_array)
view_types = [type(getattr({}, name)()) for name in ('items','keys','values')]
-if view_types[0] is not list: # XXX only needed in Py3.0
+if view_types[0] is not list: # only needed in Py3.0
def rebuild_as_list(obj):
return list, (list(obj),)
for view_type in view_types:
@@ -930,14 +930,11 @@
#
class IteratorProxy(BaseProxy):
- # XXX remove methods for Py3.0 and Py2.6
- _exposed_ = ('__next__', 'next', 'send', 'throw', 'close')
+ _exposed_ = ('__next__', 'send', 'throw', 'close')
def __iter__(self):
return self
def __next__(self, *args):
return self._callmethod('__next__', args)
- def next(self, *args):
- return self._callmethod('next', args)
def send(self, *args):
return self._callmethod('send', args)
def throw(self, *args):
More information about the Python-3000-checkins
mailing list