<p>Such code still won't work on 3.2, hence restoring the redundant notation would be ultimately pointless. </p>
<p>--<br>
Nick Coghlan (via Gmail on Android, so likely to be more terse than usual)</p>
<div class="gmail_quote">On Dec 8, 2011 4:34 PM, "Chris McDonough" <<a href="mailto:chrism@plope.com">chrism@plope.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 2011-12-08 at 01:18 -0500, Benjamin Peterson wrote:<br>
> 2011/12/8 Chris McDonough <<a href="mailto:chrism@plope.com">chrism@plope.com</a>>:<br>
> > On Thu, 2011-12-08 at 01:02 -0500, Benjamin Peterson wrote:<br>
> >> 2011/12/8 Chris McDonough <<a href="mailto:chrism@plope.com">chrism@plope.com</a>>:<br>
> >> > On the heels of Armin's blog post about the troubles of making the same<br>
> >> > codebase run on both Python 2 and Python 3, I have a concrete<br>
> >> > suggestion.<br>
> >> ><br>
> >> > It would help a lot for code that straddles both Py2 and Py3 to be able<br>
> >> > to make use of u'' literals.<br>
> >><br>
> >> Helpful or not helpful, I think that ship has sailed. The earliest it<br>
> >> could see the light of day is 3.3, which would leave people trying to<br>
> >> support 3.1 and 3.2 in a bind.<br>
> ><br>
> > Right.. the title does say "readd ... support in 3.3". Are you<br>
> > suggesting "the ship has sailed" for eternity because it can't be<br>
> > supported in Python < 3.3?<br>
><br>
> I'm questioning the real utility of it.<br>
<br>
All I can really offer is my own experience here based on writing code<br>
that needs to straddle Python 2.5, 2.6, 2.7 and 3.2 without use of 2to3.<br>
Having u'' work across all of these would mean porting would not require<br>
as much eyeballing as code modified via "from future import<br>
unicode_literals", it would let more code work on 2.5 unchanged, and the<br>
resulting code would execute faster than code that required us to use a<br>
u() function.<br>
<br>
What's the case against?<br>
<br>
- C<br>
<br>
<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com" target="_blank">http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</blockquote></div>