> On 28 Aug 2019, at 14:09, Piotr Duda <[email protected]> wrote: > > śr., 28 sie 2019 o 13:18 Steven D'Aprano <[email protected]> napisał(a): >> >>> On Tue, Aug 27, 2019 at 05:13:41PM -0000, [email protected] wrote: >>> >>> The difference between `x'...'` and `x('...')`, other than visual noise, is >>> the >>> following: >>> >>> - The first "x" is in its own namespace of string prefixes. The second "x" >>> exists in the global namespace of all other symbols. >> >> Ouch! That's adding a lot of additional complexity to the language. > > There is much simpler solution, just make `abc"whatever"` synatctic > sugar for `string_literal_abc(r"whatever", closure)` where closure is > object that allow read only access to variables in call site.
So to use abc"foo" we must import string_literal_abc? Seems pretty confusing to me! _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/XMKWHIOIEHPPXSFTBDQGZ5AE5RGSWFLE/ Code of Conduct: http://python.org/psf/codeofconduct/
