A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-February/116947.html below:

[Python-Dev] PEP 414 - Unicode Literals for Python 3

[Python-Dev] PEP 414 - Unicode Literals for Python 3 [Python-Dev] PEP 414 - Unicode Literals for Python 3Ethan Furman ethan at stoneleaf.us
Mon Feb 27 18:05:54 CET 2012
Martin v. Löwis wrote:
> Am 26.02.2012 07:06, schrieb Nick Coghlan:
>> On Sun, Feb 26, 2012 at 1:13 PM, Guido van Rossum <guido at python.org> wrote:
>>> A small quibble: I'd like to see a benchmark of a 'u' function implemented in C.
>> Even if it was quite fast, I don't think such a function would bring
>> the same benefits as restoring support for u'' literals.
> 
> You claim that, but your argument doesn't actually support that claim
> (or I fail to see the argument).

Python 2.6 code:
    this = u'that'

Python 3.3 code:
    this = u('that')

Not source compatible, not elegant.  (Even though 2to3 could make this 
fix, it's still kinda ugly.)

~Ethan~
More information about the Python-Dev mailing list

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