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

Eric Smith eric+python-dev at trueblade.com
Thu Mar 20 19:11:13 CET 2008


Martin v. Löwis wrote:
>> Will python 2.6 have something like "from future import 
>> unicode_string_literals" ?
> 
> It was proposed before, I don't know whether any implementation
> on that has started.

I don't see anything in the bug tracker.  I'd be willing to look at it, 
if this is what we want to do.

>> This should also solve lennart's problem. (But then py3k would need to 
>> support that future import, which
>> is forbidden).
> 
> Right. Of course, just removing a __future__ import is simpler than
> editing all the string literals.

py3k supports future imports.  For example, "from __future__ import 
with_statement" works, and I presume it's a no-op.  I did not forward 
port print_function, but maybe I should?

Eric.



More information about the Python-3000 mailing list