Martin Panter added the comment:
There was a bit of discussion at the top of
<https://bugs.python.org/issue25179#msg254298>.
IMO it would be simpler do disallow all f-strings as docstrings. Otherwise,
what would the result of this be:
name = "module level"
class C:
name = "class level"
def m(self, name="default param"):
f"{name}"
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28739>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com