On Tue, Jan 11, 2022 at 6:24 PM Guido van Rossum <gu...@python.org> 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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/OK7HQ44SIWDRDHZPKPCNKUJ4YAZ5QGXK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to