MCPcopy Index your code
hub / github.com/RustPython/RustPython / Token

Class Token

Lib/multiprocessing/managers.py:62–79  ·  view source on GitHub ↗

Type to uniquely identify a shared object

Source from the content-addressed store, hash-verified

60#
61
62class Token(object):
63 '''
64 Type to uniquely identify a shared object
65 '''
66 __slots__ = ('typeid', 'address', 'id')
67
68 def __init__(self, typeid, address, id):
69 (self.typeid, self.address, self.id) = (typeid, address, id)
70
71 def __getstate__(self):
72 return (self.typeid, self.address, self.id)
73
74 def __setstate__(self, state):
75 (self.typeid, self.address, self.id) = state
76
77 def __repr__(self):
78 return '%s(typeid=%r, address=%r, id=%r)' % \
79 (self.__class__.__name__, self.typeid, self.address, self.id)
80
81#
82# Function for communication with a manager's server process

Callers 2

serve_clientMethod · 0.70
_createMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected