On Aug 27, 2019, at 10:21, Rhodri James <rho...@kynesim.co.uk> wrote: > > You make the point yourself: this is something we already understand from > dealing with complex numbers in other circumstances. That is not true of > generic single-character string prefixes.
It certainly is true for 1.23f. And, while 1.23d for a decimal or 1/3F for a Fraction may not be identical to any other context, it’s a close-enough analogy that it’s immediately familiar. Although I might actually prefer 1.23dec or 1/3frac or something more explicit in those cases. (Fortunately, there’s nothing in the design stopping me from doing that.) As for string prefixes, I don’t think those should usually, or maybe even ever, be single-character. People have given examples like sql"…" (I’m still not sure exactly what that does, but it’s apparently used in other languages for something?) and regex"…" and path"…" (which are a lot more obvious). I’m not sure if they actually are useful, which is why my proposal didn’t have them; I’m waiting on the OP to give more complete examples, cite similar uses from other languages, etc. But I doubt the problem you’re talking about, that they’d all be unfamiliar cryptic one-letter things, is likely to arise. _______________________________________________ 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/CL6TTK737GD5KCAJKUL3CACZBBHSHVU3/ Code of Conduct: http://python.org/psf/codeofconduct/