code: def inheritdoc(method):
      
      method.__doc__ = getattr(list, method.__name__).__doc__
      return method
docs: Set __doc__ of *method* to __doc__ of *method* in its parent class.
  
      Since this is used on :class:`.SmartList`, the "parent class" used is
      ``list``. This function can be used as a decorator.