Message281168
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}" |
|
Date |
User |
Action |
Args |
2016-11-18 21:23:44 | martin.panter | set | recipients:
+ martin.panter, gvanrossum, eric.smith, yselivanov |
2016-11-18 21:23:44 | martin.panter | set | messageid: <1479504224.12.0.862745727102.issue28739@psf.upfronthosting.co.za> |
2016-11-18 21:23:44 | martin.panter | link | issue28739 messages |
2016-11-18 21:23:43 | martin.panter | create | |
|