On Tue, Jan 11, 2022 at 6:24 PM Guido van Rossum <[email protected]> wrote:
> I personally think F-strings should not be usable as docstrings. If you
> want a dynamically calculated docstring you should assign it dynamically,
> not smuggle it in using a string-like expression. We don't allow "blah {x}
> blah".format(x=1) as a docstring either, not "foo %s bar" % x.
>
I came to the conclusion that something like jinja2, operating on a Python
template, was a better way to go.
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/OK7HQ44SIWDRDHZPKPCNKUJ4YAZ5QGXK/ Code of Conduct: http://python.org/psf/codeofconduct/