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 <>
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__
>>> class Foo:
...     'spam' f'{"MMM"}'  # Compiled as f'spam{"MMM"}'
>>> Foo.__doc__ is None
Date User Action Args
2016-11-18 22:14:12martin.pantersetrecipients: + martin.panter, gvanrossum, eric.smith, yselivanov
2016-11-18 22:14:12martin.pantersetmessageid: <>
2016-11-18 22:14:12martin.panterlinkissue28739 messages
2016-11-18 22:14:12martin.pantercreate