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 abarry
Recipients abarry, docs@python, eric.smith, jayvdb
Date 2015-11-07.21:58:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446933501.13.0.157275932237.issue25179@psf.upfronthosting.co.za>
In-reply-to
Content
I think f-strings should be valid as docstrings. I don't know the exact details, but I think it would be harder to prevent rather than allow them. It would be exactly the same as doing func.__doc__ = func.__doc__.format(foo=foo, bar=bar)

It probably wouldn't be useful in most cases, but I don't see why we should restrict the use of f-strings to non-docstrings (not counting users trying to do that and stumbling across this error).
History
Date User Action Args
2015-11-07 21:58:21abarrysetrecipients: + abarry, eric.smith, docs@python, jayvdb
2015-11-07 21:58:21abarrysetmessageid: <1446933501.13.0.157275932237.issue25179@psf.upfronthosting.co.za>
2015-11-07 21:58:21abarrylinkissue25179 messages
2015-11-07 21:58:20abarrycreate