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 martin.panter
Recipients eric.smith, gvanrossum, martin.panter, yselivanov
Date 2016-11-18.22:14:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479507252.76.0.29976484383.issue28739@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, testing your code fragment, it seems you do get a doc string when the f-string has no substitutions in curly brackets, otherwise you don’t get any doc string. Maybe this is due to how different forms of string are compiled.

>>> class Foo:
...    f'spam'  # Compiled as plain 'spam'
... 
>>> Foo.__doc__
'spam'
>>> class Foo:
...     'spam' f'{"MMM"}'  # Compiled as f'spam{"MMM"}'
... 
>>> Foo.__doc__ is None
True
History
Date User Action Args
2016-11-18 22:14:12martin.pantersetrecipients: + martin.panter, gvanrossum, eric.smith, yselivanov
2016-11-18 22:14:12martin.pantersetmessageid: <1479507252.76.0.29976484383.issue28739@psf.upfronthosting.co.za>
2016-11-18 22:14:12martin.panterlinkissue28739 messages
2016-11-18 22:14:12martin.pantercreate