This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Jim Fasarakis-Hilliard, eric.smith, serhiy.storchaka, vstinner
Date 2017-01-03.15:31:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483457500.36.0.039312335623.issue29104@psf.upfronthosting.co.za>
In-reply-to
Content
> f'\\N{AMPERSAND}': reading a local variable looks like a typo or a security vulnerability, rather than a nice feature.

This can look as a typo, but how would you write this if this is not a typo? f'\\N{AMPERSAND}' is legitimate syntax, and it would be weird to interpret this expression in any other way than as '\\' + 'N' + format(AMPERSAND).

> What is the issue with having to write "\\{10}" to get "\\10" string? It's less error prone.

There is no issue with f'\\{10}'. There is an issue with f'\{10}'.
History
Date User Action Args
2017-01-03 15:31:40serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, eric.smith, Jim Fasarakis-Hilliard
2017-01-03 15:31:40serhiy.storchakasetmessageid: <1483457500.36.0.039312335623.issue29104@psf.upfronthosting.co.za>
2017-01-03 15:31:40serhiy.storchakalinkissue29104 messages
2017-01-03 15:31:40serhiy.storchakacreate