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 yselivanov
Recipients eric.smith, gvanrossum, martin.panter, yselivanov
Date 2016-11-18.21:41:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479505268.01.0.0141047570329.issue28739@psf.upfronthosting.co.za>
In-reply-to
Content
> IMO it would be simpler do disallow all f-strings as docstrings.

How exactly you want to disallow them?  Raise SyntaxError?  If you don't raise anything, then the behaviour is just confusing -- the interpreter parses them, but __doc__ is None.

I think this needs to be fixed.  Eric, can we still fix this in 3.6?  If not, then we need to update the PEP and the docs.
History
Date User Action Args
2016-11-18 21:41:08yselivanovsetrecipients: + yselivanov, gvanrossum, eric.smith, martin.panter
2016-11-18 21:41:08yselivanovsetmessageid: <1479505268.01.0.0141047570329.issue28739@psf.upfronthosting.co.za>
2016-11-18 21:41:07yselivanovlinkissue28739 messages
2016-11-18 21:41:07yselivanovcreate