code: def _set_doc(self, func):
  		
  		if not self.doc and func.__doc__:
  			self.doc = func.__doc__.strip().replace('\n', ' ')
docs: If no doc was explicitly set, use the function's docstring, trimming
  		whitespace and replacing newlines with spaces.