Author serhiy.storchaka
Recipients eric.smith, gvanrossum, martin.panter, ned.deily, rhettinger, serhiy.storchaka, terry.reedy, yselivanov
Date 2016-11-26.08:23:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480148601.64.0.175988788288.issue28739@psf.upfronthosting.co.za>
In-reply-to
Content
Adding more confusion, the expression ``('This is a docstring')`` is accepted as a docstring despite the fact that it is not a string literal.

The cases f'string' and ('string') looks similar to me. Both are simple expressions that become indistinguishable from string literals due to some optimization at parser level. It would be nice to disallow them as docstrings, but it may be not easy to do.
History
Date User Action Args
2016-11-26 08:23:21serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, rhettinger, terry.reedy, eric.smith, ned.deily, martin.panter, yselivanov
2016-11-26 08:23:21serhiy.storchakasetmessageid: <1480148601.64.0.175988788288.issue28739@psf.upfronthosting.co.za>
2016-11-26 08:23:21serhiy.storchakalinkissue28739 messages
2016-11-26 08:23:21serhiy.storchakacreate