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

Christian Heimes lists at cheimes.de
Thu Mar 20 22:18:33 CET 2008


Barry Warsaw schrieb:
> I proposed what I think is a better solution. Add
>> from __future__ import unicode_strings
>> to Py2.6. That would let you write Py3k compatible strings (and of 
> course byte literals) in 2.6. It would essential treat 'foo' as 
> u'foo' in the file with the future import.

I proposed a similar solution an hour ago: from __future__ import 
py3k_literals
It's in my answer to Lennarts' posting written at 21:15 local time.
Christian


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /