PyDocs

Nav

Concurrent Execution

BaseProxy._callmethod

  • BaseProxy._callmethod(methodname[, args[, kwds]])
Try to call a method of the referent and return a copy of the result
1 Example
>>> l = manager.list(range(10))
>>> l._callmethod('__len__')
10
>>> l._callmethod('__getitem__', (slice(2, 7),)) # equivalent to l[2:7]
[2, 3, 4, 5, 6]
>>> l._callmethod('__getitem__', (20,))          # equivalent to l[20]
Traceback (most recent call last):
...
IndexError: list index out of range
from the Python docs
See Also
No see-alsos for multiprocessing.managers/BaseProxy._callmethod
0 Notes
No notes for BaseProxy._callmethod