[Python-ideas] Re: Allow spaces between string prefix and the string literal

2020-01-30 Thread Steven D'Aprano
On Thu, Jan 30, 2020 at 12:39:29AM +0300, Mikhail V wrote:
> I would like to see possibility to put spaces
> between the string prefix and the string literal
> so I could write e.g. like this:
> 
> print (f "x: {x}")
> 
> IMO it would help with legibility especially
> noticable with by proportional fonts.

If you are having problems with your source code being less legible and 
harder to read due to the use of proportional fonts, rather than asking 
to change the language, you should stop using proportional fonts for 
reading code.

Or at least choose a better font. If your chosen font makes f" and f' 
illegible, then you have chosen badly.


-- 
Steven
___
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/H6DSXFBIAREJBVB6ZVLP3CZK7RL46GHH/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-ideas] Re: Allow spaces between string prefix and the string literal

2020-01-30 Thread Brett Cannon
The problem is that's ambiguous to the grammar whether you truly mean 'f'
as a prefix or 'f' as a variable and just happened to type something wrong.
And then debugging that would be horrible. So even if the grammar to
support it, I'm -1 on the idea.

On Wed, Jan 29, 2020 at 1:41 PM Mikhail V  wrote:

> I would like to see possibility to put spaces
> between the string prefix and the string literal
> so I could write e.g. like this:
>
> print (f "x: {x}")
>
> IMO it would help with legibility especially
> noticable with by proportional fonts.
>
> Mikhail
> ___
> 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/OXR2HHUYZYXJXNOL4INTOAOPXJWWCZBA/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
___
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/FNN6LK4DKQDCKLSULINBW524MX2V7N3H/
Code of Conduct: http://python.org/psf/codeofconduct/