Message216598
| Author |
matrixise |
| Recipients |
Claudiu.Popa, berker.peksag, bignose, eric.araujo, eric.snow, martin.panter, matrixise, r.david.murray, rhettinger, yselivanov |
| Date |
2014年04月16日.21:28:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<6D81A6DA-E940-4192-A1F2-CFA3D584ED82@wirtel.be> |
| In-reply-to |
<1397683495.54.0.768554827328.issue12916@psf.upfronthosting.co.za> |
| Content |
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. |
|