Message254299
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). |
|
Date |
User |
Action |
Args |
2015-11-07 21:58:21 | abarry | set | recipients:
+ abarry, eric.smith, docs@python, jayvdb |
2015-11-07 21:58:21 | abarry | set | messageid: <1446933501.13.0.157275932237.issue25179@psf.upfronthosting.co.za> |
2015-11-07 21:58:21 | abarry | link | issue25179 messages |
2015-11-07 21:58:20 | abarry | create | |
|