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 akuchling
Recipients Arfrever, akuchling, bkabrda, djc, eric.araujo, lemburg, loewis
Date 2015-04-13.15:08:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428937715.88.0.720301092666.issue12425@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch against 3.5. This patch is atop the fix for #17898, so it won't apply cleanly to a stock 3.5.

The patch uses warnings.warn() to issue a warning if the plural header is empty. There seems to be precedent for issuing warnings in the case of odd incoming data or behaviour, so I'm comfortable doing this; I think that warnings need not be only for Python language features, like deprecated things.

But this does mean that importing gettext will also import warnings as a result, increasing memory usage.  Probably this doesn't matter -- on any sizable program, you probably already have the warnings module imported.  Otherwise we could print to sys.stderr.
History
Date User Action Args
2015-04-13 15:08:35akuchlingsetrecipients: + akuchling, lemburg, loewis, djc, eric.araujo, Arfrever, bkabrda
2015-04-13 15:08:35akuchlingsetmessageid: <1428937715.88.0.720301092666.issue12425@psf.upfronthosting.co.za>
2015-04-13 15:08:35akuchlinglinkissue12425 messages
2015-04-13 15:08:35akuchlingcreate