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 Riccardo Polignieri
Recipients Riccardo Polignieri, eric.smith, scoder, serhiy.storchaka
Date 2018-04-03.11:39:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522755565.17.0.467229070634.issue33189@psf.upfronthosting.co.za>
In-reply-to
Content
> the error should be better

Yes, that's what I maeant - sorry I should have phrased better. 
I marked by mistake a couple of f-strings for translation and totally forgot about it for a while... it took me some time to figure out what was going on with this NameError popping out of nowhere.

Curiously, xgettext handles this thing better (...or, far worse actually): it just parses the f-string as a regular one, producing something like
msgid "hello {x}"
msgstr ""
But then of course Python will fail *silently* at runtime, never picking up the translated version of the string...
History
Date User Action Args
2018-04-03 11:39:25Riccardo Polignierisetrecipients: + Riccardo Polignieri, scoder, eric.smith, serhiy.storchaka
2018-04-03 11:39:25Riccardo Polignierisetmessageid: <1522755565.17.0.467229070634.issue33189@psf.upfronthosting.co.za>
2018-04-03 11:39:25Riccardo Polignierilinkissue33189 messages
2018-04-03 11:39:25Riccardo Poligniericreate