Minor inconvenience: f-string not recognized as docstring
11 Jan
2022
11 Jan
'22
1:41 p.m.
Hello, Currently, a f-string is not recognized as a docstring:
class C: f"foo" C.__doc__
This means you need to use a (admittedly easy) workaround:
class C: __doc__ = f"foo" C.__doc__ 'foo'
Shouldn't the former be allowed for convenience? Regards Antoine.
820
Age (days ago)
828
Last active (days ago)
11 comments
9 participants
participants (9)
-
Antoine Pitrou
-
Brett Cannon
-
Eric V. Smith
-
Gregory P. Smith
-
Guido van Rossum
-
Jim J. Jewett
-
Neil Muller
-
Steve Holden
-
Steven Barker