parameters: (self, other)
return_statement: return self
docstring: In-place addition of a distribution or environment
docstring_summary: In-place addition of a distribution or environment
docstring_tokens: In - place addition of a distribution or environment
function: def __iadd__(self, other):
  
          """In-place addition of a distribution or environment"""
  
          if isinstance(other, Distribution):
  
              self.add(other)
  
          elif isinstance(other, Environment):
  
              for project in other:
  
                  for dist in other[project]:
  
                      self.add(dist)
  
          else:
  
              raise TypeError("Can't add %r to environment" % (other,))
  
          return self
function_tokens: def __iadd__ ( self , other ) : if isinstance ( other , Distribution ) : self . add ( other ) elif isinstance ( other , Environment ) : for project in other : for dist in other [ project ] : self . add ( dist ) else : raise TypeError ( "Can't add %r to environment" % ( other , ) ) return self