parameters: (typecode_or_type, size_or_initializer, *, lock=True, ctx=None)
return_statement: return synchronized(obj, lock, ctx=ctx)
docstring: Return a synchronization wrapper for a RawArray
docstring_summary: Return a synchronization wrapper for a RawArray
docstring_tokens: Return a synchronization wrapper for a RawArray
function: def Array(typecode_or_type, size_or_initializer, *, lock=True, ctx=None):
      '''
      Return a synchronization wrapper for a RawArray
      '''
      obj = RawArray(typecode_or_type, size_or_initializer)
      if lock is False:
          return obj
      if lock in (True, None):
          ctx = ctx or get_context()
          lock = ctx.RLock()
      if not hasattr(lock, 'acquire'):
          raise AttributeError("%r has no method 'acquire'" % lock)
      return synchronized(obj, lock, ctx=ctx)
function_tokens: def Array ( typecode_or_type , size_or_initializer , * , lock = True , ctx = None ) : obj = RawArray ( typecode_or_type , size_or_initializer ) if lock is False : return obj if lock in ( True , None ) : ctx = ctx or get_context ( ) lock = ctx . RLock ( ) if not hasattr ( lock , 'acquire' ) : raise AttributeError ( "%r has no method 'acquire'" % lock ) return synchronized ( obj , lock , ctx = ctx )