A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20150811/a8411f1a/attachment.html below:

<p dir="ltr"><br>
On Aug 11, 2015 10:10 AM, "Alexander Walters" <<a href="mailto:tritium-list@sdamon.com">tritium-list@sdamon.com</a>> wrote:<br>
><br>
> This may seam like a simplistic solution to i18n, but why not just add a method to string objects (assuming we implement f-strings) that just returns the original, unprocessed string.  If the string was not an f-string, it just returns self.  The gettext module can be modified, I think trivially, to use the method instead of the string directly.<br>
><br>
> Is this a horrible idea?</p>
<p dir="ltr">This is a backward compatible macro to elide code in strings that should not be.</p>
<p dir="ltr">* IIUC, this would only be usable in 3.6+ (so, not at all and style guide says NO)<br>
  * there should be a normal functional() way to accomplish this in a backwards compatible way<br>
  * formatlng() / lookup() would be more future compatible</p>
<p dir="ltr">><br>
> - Alex W.<br>
><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/wes.turner%40gmail.com">https://mail.python.org/mailman/options/python-dev/wes.turner%40gmail.com</a><br>
</p>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4