Message281174
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 |
|
Date |
User |
Action |
Args |
2016-11-18 22:14:12 | martin.panter | set | recipients:
+ martin.panter, gvanrossum, eric.smith, yselivanov |
2016-11-18 22:14:12 | martin.panter | set | messageid: <1479507252.76.0.29976484383.issue28739@psf.upfronthosting.co.za> |
2016-11-18 22:14:12 | martin.panter | link | issue28739 messages |
2016-11-18 22:14:12 | martin.panter | create | |
|