[Python-Dev] __doc__ regression

Victor Stinner victor.stinner at gmail.com
Tue Feb 4 14:19:38 CET 2014


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.

Victor


More information about the Python-Dev mailing list