[Python-Dev] __doc__ regression

Larry Hastings larry at hastings.org
Tue Feb 4 23:49:01 CET 2014

On 02/04/2014 05:19 AM, Victor Stinner wrote:
> 2014-02-04 Larry Hastings <larry at hastings.org>:
>> Why couldn't these tools use inspect.Signature?
> inspect.Signature was added in Python 3.3. Python 2 is still widely
> used, and some Linux distro only provide Python 3.2.
> By the way, help(dict.fromkeys) looks to use __doc__, not the
> signature, because the prototype is also missing.
> It's a regression.

In 3.4, inspect.getfullargspec and inspect.getargspec are being 
reimplemented using inspect.Signature.

I don't understand your bringing up Python 2 and Python 3.2.  Are there 
programs that run under Python 2 and Python 3.2 that examine docstrings 
from Python 3.4?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140204/d7d28e4b/attachment-0001.html>

More information about the Python-Dev mailing list