On 17/01/2022 00:16, Steven D'Aprano wrote:
On Sun, Jan 16, 2022 at 01:11:13PM +0000, Rob Cliffe via Python-ideas wrote:
How about
fs{1, 2, 3}
What does the "s" add that the set {1, 2, 3} doesn't already tell us?
It helps to distinguish it from
f(1, 2, 3)
f[1, 2, 3]
f"1, 2, 3"
Yes, I know you can still have
fs(1, 2, 3)
fs[1, 2, 3]
but IMO those are less common.
We don't say rs"\d+" for raw strings, or fs"{x =}" for f-strings.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/RSEE4H6NV3HGVTBCZGZN3LYA3C32SSAQ/
Code of Conduct: http://python.org/psf/codeofconduct/