Python 2.x supports a -U flag which has the effect largely the same as 'from __future__ import unicode_literals'. However -U is undocumented anywhere except import.c. We should either remove -U support from Python 2.7 or document it (and indicate in that documentation that the future import is preferred).
Barry A. Warsaw wrote: > > New submission from Barry A. Warsaw <barry@python.org>: > > Python 2.x supports a -U flag which has the effect largely the same as 'from __future__ import unicode_literals'. However -U is undocumented anywhere except import.c. We should either remove -U support from Python 2.7 or document it (and indicate in that documentation that the future import is preferred). +1 on removing it. It has been deliberately been undocumented since Python 2.2 in order to be able to phase out its use and finally remove it.
I'm +0 on such a change - I don't think it makes anything better (it will only cause more users asking what this is, why it was added, and demand that something should be done about it). Feel free to commit it, anyway.