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

Thomas Wouters thomas at python.org
Thu Mar 20 20:09:32 CET 2008


On Thu, Mar 20, 2008 at 12:10 PM, Christian Heimes <lists at cheimes.de> wrote:

> Eric Smith schrieb:
> > 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?
>
> Python 3.0 must accept all future imports that are available in the 2.x
> series although they are no-ops. from __future__ import feature has to
> work even if the feature is already available by default.


This surprises me greatly. The reason this is true in 2.x is for the obvious
backward compatibility. 3.0 is about not worrying about backward
compatibility. Why do we need to keep the future imports?

-- 
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20080320/0b39c0fa/attachment.htm 


More information about the Python-3000 mailing list