[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This change was part of #40257 and is being discussed there (where I suggested reverting it). -- nosy: +terry.reedy resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: 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/is

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-10 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : In python 3.8: ``` >>> class A(object): ... """standard docstring""" ... pass ... >>> import inspect >>> inspect.getdoc(A()) 'standard docstring' ``` In 3.9: ``` $ python Python 3.9.0a6+ (heads/master:5b956ca42d, May 10 2020, 20:31:26) [Clang

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-10 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- components: +Interpreter Core versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list m