This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients BTaskaya, eric.smith, pablogsal, serhiy.storchaka
Date 2021-05-21.01:10:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621559412.35.0.951838082347.issue44194@roundup.psfhosted.org>
In-reply-to
Content
To be pedantic, f-strings don't "cast" to a string, they call format(obj) on the argument. Typically this is the same as str(obj), but it need not be. I guess if all of the arguments are already exact strings then this distinction doesn't matter, but I'd have to give it some more thought.

I've never seen the pattern of joining a fixed size list, but I guess it exists in the wild. I'm skeptical that this optimization is worth doing. We should check on a real-world benchmark instead of a micro benchmark.
History
Date User Action Args
2021-05-21 01:10:12eric.smithsetrecipients: + eric.smith, serhiy.storchaka, pablogsal, BTaskaya
2021-05-21 01:10:12eric.smithsetmessageid: <1621559412.35.0.951838082347.issue44194@roundup.psfhosted.org>
2021-05-21 01:10:12eric.smithlinkissue44194 messages
2021-05-21 01:10:12eric.smithcreate