This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mbussonn
Recipients mbussonn
Date 2020-05-11.03:56:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589169380.19.0.988807060363.issue40587@roundup.psfhosted.org>
In-reply-to
Content
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 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())
>>>
```
History
Date User Action Args
2020-05-11 03:56:20mbussonnsetrecipients: + mbussonn
2020-05-11 03:56:20mbussonnsetmessageid: <1589169380.19.0.988807060363.issue40587@roundup.psfhosted.org>
2020-05-11 03:56:20mbussonnlinkissue40587 messages
2020-05-11 03:56:19mbussonncreate