python-eldoc-setup-code

python-eldoc-setup-code is a variable defined in `python.el'.
Its value is

"def __PYDOC_get_help(obj):\n try:\n import inspect\n try:\n str_type = basestring\n except NameError:\n str_type = str\n if isinstance(obj, str_type):\n obj = eval(obj, globals())\n doc = inspect.getdoc(obj)\n if not doc and callable(obj):\n target = None\n if inspect.isclass(obj) and hasattr(obj, '__init__'):\n target = obj.__init__\n objtype = 'class'\n else:\n target = obj\n objtype = 'def'\n if target:\n args = inspect.formatargspec(\n *inspect.getargspec(target)\n )\n name = obj.__name__\n doc = '{objtype} {name}{args}'.format(\n objtype=objtype, name=name, args=args\n )\n else:\n doc = doc.splitlines()[0]\n except:\n doc = ''\n print (doc)"


Documentation:
Python code to setup documentation retrieval.

You can customize this variable.