ś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.
_______________________________________________
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/6GFRVQOVKXPSX54BKOA7LDWPY4YSUYAG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to