parameters: (self)
return_statement: return rv
docstring: Return a shallow copy of the instance.
docstring_summary: Return a shallow copy of the instance.
docstring_tokens: Return a shallow copy of the instance .
function: def copy(self):
          """Return a shallow copy of the instance."""
          rv = self.__class__(self.capacity)
          rv._mapping.update(self._mapping)
          rv._queue.extend(self._queue)
          return rv
function_tokens: def copy ( self ) : rv = self . __class__ ( self . capacity ) rv . _mapping . update ( self . _mapping ) rv . _queue . extend ( self . _queue ) return rv