> On 28 Aug 2019, at 14:09, Piotr Duda <duda.pi...@gmail.com> wrote: > > śr., 28 sie 2019 o 13:18 Steven D'Aprano <st...@pearwood.info> napisał(a): >> >>> On Tue, Aug 27, 2019 at 05:13:41PM -0000, stpa...@gmail.com 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 -- 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/XMKWHIOIEHPPXSFTBDQGZ5AE5RGSWFLE/ Code of Conduct: http://python.org/psf/codeofconduct/