Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/multiprocessing/
Dmanagers.py796 def _callmethod(self, methodname, args=(), kwds={}): member in BaseProxy
830 return self._callmethod('#GETVALUE')
910 return self._callmethod('__repr__')
1026 return self._callmethod('__next__', args)
1028 return self._callmethod('send', args)
1030 return self._callmethod('throw', args)
1032 return self._callmethod('close', args)
1039 return self._callmethod('acquire', args)
1041 return self._callmethod('release')
1043 return self._callmethod('acquire')
[all …]
/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/cpython3/Doc/includes/
Dmp_newtype.py26 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.py1450 return self._callmethod('next')
1452 return self._callmethod('__next__')
1482 self.assertEqual(foo._callmethod('f'), 'f()')
1483 self.assertRaises(RemoteError, foo._callmethod, '_h')
1487 self.assertEqual(bar._callmethod('f'), 'f()')
1488 self.assertEqual(bar._callmethod('_h'), '_h()')
/external/python/cpython2/Doc/library/
Dmultiprocessing.rst1435 :meth:`BaseProxy._callmethod`. (If *exposed* is ``None`` then
1717 .. method:: _callmethod(methodname[, args[, kwds]])
1723 proxy._callmethod(methodname, args, kwds)
1736 :meth:`_callmethod`. If some other exception is raised in the manager's
1738 raised by :meth:`_callmethod`.
1743 An example of the usage of :meth:`_callmethod`:
1748 >>> l._callmethod('__len__')
1750 >>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`
1752 >>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`
/external/python/cpython3/Doc/library/
Dmultiprocessing.rst1717 :meth:`BaseProxy._callmethod`. (If *exposed* is ``None`` then
2042 .. method:: _callmethod(methodname[, args[, kwds]])
2048 proxy._callmethod(methodname, args, kwds)
2061 :meth:`_callmethod`. If some other exception is raised in the manager's
2063 raised by :meth:`_callmethod`.
2068 An example of the usage of :meth:`_callmethod`:
2073 >>> l._callmethod('__len__')
2075 >>> l._callmethod('__getitem__', (slice(2, 7),)) # equivalent to l[2:7]
2077 >>> l._callmethod('__getitem__', (20,)) # equivalent to l[20]
/external/python/cpython3/Lib/test/
D_test_multiprocessing.py2826 return self._callmethod('__next__')
2879 self.assertEqual(foo._callmethod('f'), 'f()')
2880 self.assertRaises(RemoteError, foo._callmethod, '_h')
2884 self.assertEqual(bar._callmethod('f'), 'f()')
2885 self.assertEqual(bar._callmethod('_h'), '_h()')