You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[regression] inspect.getdoc not returning docstring. #84767
$ python
Python 3.9.0a6+ (heads/master:5b956ca42d, May 10 2020, 20:31:26)
[Clang 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class A(object):
KeyboardInterrupt
>>> class A(object):
... """standard docstring"""
... pass
...
>>> import inspect
>>> inspect.getdoc(A())
>>>
Activity
Carreau commentedon May 11, 2020
In python 3.8:
In 3.9:
Carreau commentedon May 11, 2020
That will break a lot o the interactive usage for the scientific ecossytem Imho,
For example anyone that get a Pandas Dataframe and try to get help on it either via help(df), or
df?in IPython/Jupyter.Might be purposeful (https://bugs.python.org/issue40257)
terryjreedy commentedon May 16, 2020
This change was part of bpo-40257 and is being discussed there (where I suggested reverting it).