Home
last modified time | relevance | path

Searched refs:_callmethod (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Lib/multiprocessing/
Dmanagers.py746 def _callmethod(self, methodname, args=(), kwds={}): member in BaseProxy
780 return self._callmethod('#GETVALUE')
856 return self._callmethod('__repr__')
973 return self._callmethod('__next__', args)
975 return self._callmethod('next', args)
977 return self._callmethod('send', args)
979 return self._callmethod('throw', args)
981 return self._callmethod('close', args)
987 return self._callmethod('acquire', (blocking,))
989 return self._callmethod('release')
[all …]
/external/python/cpython2/Doc/includes/
Dmp_newtype.py34 return self._callmethod('next')
36 return self._callmethod('__next__')
/external/python/cpython2/Doc/tools/
Dsusp-ignored.csv81 library/multiprocessing,,`,">>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`"
82 library/multiprocessing,,`,">>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`"
/external/python/cpython2/Lib/test/
Dtest_multiprocessing.py1381 return self._callmethod('next')
1383 return self._callmethod('__next__')
1413 self.assertEqual(foo._callmethod('f'), 'f()')
1414 self.assertRaises(RemoteError, foo._callmethod, '_h')
1418 self.assertEqual(bar._callmethod('f'), 'f()')
1419 self.assertEqual(bar._callmethod('_h'), '_h()')
/external/python/cpython2/Doc/library/
Dmultiprocessing.rst1430 :meth:`BaseProxy._callmethod`. (If *exposed* is ``None`` then
1712 .. method:: _callmethod(methodname[, args[, kwds]])
1718 proxy._callmethod(methodname, args, kwds)
1731 :meth:`_callmethod`. If some other exception is raised in the manager's
1733 raised by :meth:`_callmethod`.
1738 An example of the usage of :meth:`_callmethod`:
1743 >>> l._callmethod('__len__')
1745 >>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`
1747 >>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`