
Jan. 16, 2022
6:27 p.m.
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.