Are you familiar with the f-string self-documentation operator in python 3.8?

With it you can say:



"I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler

On Mon, Nov 1, 2021 at 10:31 PM Evan Greenup via Python-ideas <> wrote:
It would be nice to add the following syntax sugar in Python "Print and Eval"

like `ptev a == b` It is same as `statement = "a == b"; print(f"{statement} ? {eval(statement)}")`.

It would super nice for debugging and other research project.

Python-ideas mailing list --
To unsubscribe send an email to
Message archived at
Code of Conduct: