[Python-ideas] Allow "assigning" to Ellipse to discard values.
Ethan Furman
ethan at stoneleaf.us
Thu Feb 12 00:06:03 CET 2015
More information about the Python-ideas mailing list
Thu Feb 12 00:06:03 CET 2015
- Previous message: [Python-ideas] Allow "assigning" to Ellipse to discard values.
- Next message: [Python-ideas] Allow "assigning" to Ellipse to discard values.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 02/11/2015 03:01 PM, Nick Coghlan wrote: > On 12 February 2015 at 01:46, Antoine Pitrou wrote: >> >> The actual deal with that is when you are using gettext or a >> similar I18N framework :-) > > I switched my own dummy variable recommendation to a double-underscore > years ago for exactly that reason. It (very) mildly irritates me that > so many sources still recommend the single-underscore that clobbers > the conventional name for the gettext translation builtin :) Python 3.4.3rc1+ (3.4:645f3d750be1, Feb 10 2015, 13:25:59) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. --> _ Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name '_' is not defined --> import gettext --> gettext._ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute '_' What globalness are you talking about? -- ~Ethan~ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150211/7b344e0e/attachment.sig>
- Previous message: [Python-ideas] Allow "assigning" to Ellipse to discard values.
- Next message: [Python-ideas] Allow "assigning" to Ellipse to discard values.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list