code: def assign(self, dst, req, src):
          
          if req == 'null':
              return
          elif req in ('write', 'inplace'):
              dst[:] = src
          elif req == 'add':
              dst[:] += src
docs: Helper function for assigning into dst depending on requirements.