[issue12916] Add inspect.splitdoc
Martin Panter
report at bugs.python.org
Sun Sep 14 01:59:01 CEST 2014
Martin Panter added the comment:
Although it is not documented, inspect.getdoc() may return None instead of a documentation string. In patch 2, inspect.splitdoc() only accepts a string; perhaps it should also accept None? Otherwise you might have to use it like this:
[summary, body] = splitdoc(getdoc(api) or "")
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12916>
_______________________________________
More information about the Python-bugs-list
mailing list