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