MCPcopy Index your code
hub / github.com/python/cpython / Value

Method Value

Lib/multiprocessing/context.py:132–136  ·  view source on GitHub ↗

Returns a synchronized shared object

(self, typecode_or_type, *args, lock=True)

Source from the content-addressed store, hash-verified

130 return RawArray(typecode_or_type, size_or_initializer)
131
132 def Value(self, typecode_or_type, *args, lock=True):
133 '''Returns a synchronized shared object'''
134 from .sharedctypes import Value
135 return Value(typecode_or_type, *args, lock=lock,
136 ctx=self.get_context())
137
138 def Array(self, typecode_or_type, size_or_initializer, *, lock=True):
139 '''Returns a synchronized shared array'''

Callers 11

test_waitforMethod · 0.80
test_waitfor_timeoutMethod · 0.80
test_valueMethod · 0.80
test_getobj_getlockMethod · 0.80
test_invalid_typecodeMethod · 0.80
test_valueMethod · 0.80
test_fork_asyncio_runMethod · 0.80

Calls 2

get_contextMethod · 0.95
ValueClass · 0.70

Tested by 10

test_waitforMethod · 0.64
test_waitfor_timeoutMethod · 0.64
test_valueMethod · 0.64
test_getobj_getlockMethod · 0.64
test_invalid_typecodeMethod · 0.64
test_valueMethod · 0.64
test_fork_asyncio_runMethod · 0.64