Message216598
On 16 Apr 2014, at 17:24, Yury Selivanov wrote:
> Yury Selivanov added the comment:
>
> The current patch proposes to add inspect.splitdoc(obj), instead of
> pydoc.splitdoc(doc). The former takes an object, extracts
> documentation out of it, and returns a tuple. The latter, just splits
> the passed doc string.
>
> If you want this function in inspect, we need to find a better name
> for it, or don't make it to receive an object.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue12916>
> _______________________________________
In the inspect module, I think all the functions take a object and not a
string, it's the reason why I included the code of pydoc.getdoc() into
inspect.splitdoc().
One point, the former ( pydoc.splitdoc() ) takes a string, and returns a
tuple. it's not the case with the new version. |
|
Date |
User |
Action |
Args |
2014-04-16 21:28:27 | matrixise | set | recipients:
+ matrixise, rhettinger, eric.araujo, r.david.murray, Claudiu.Popa, bignose, eric.snow, berker.peksag, martin.panter, yselivanov |
2014-04-16 21:28:27 | matrixise | link | issue12916 messages |
2014-04-16 21:28:27 | matrixise | create | |
|