[Python-3000] u'text' as an alias for 'text'?

Nick Coghlan ncoghlan at gmail.com
Thu Mar 20 11:28:48 CET 2008


Lennart Regebro wrote:
> So, please allow u'' in Python 3.0! With that change, my
> porting/compatibility worried would be gone, and  you would be able to
> choose between the three porting strategies dependningon how your code
> base and user base looks: 1. Clean break. 2. Syncing with 2to3, 3.
> Supporting both 2.6 and 3.0.

3 is not an option, and isn't going to be an option. The intended 
approach for string compatibility is to use u'' and b'' in 2.6, and let 
2to3 take care of converting the u'' to '' in the 3.0 version.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list