[Tutor] Simple Python Problem
Steven D'Aprano
steve at pearwood.info
Tue Sep 7 00:47:29 CEST 2010
On Tue, 7 Sep 2010 06:02:39 am ALAN GAULD wrote:
> I wonder if we could create a module that would make v2.7 simulate v3
> to a close degree? hmm... And is it sensible to try, should we not
> perhaps just accept the difference?
from __future__ import print_function, unicode_literals
from future_builtins import *
will get you part of the way, but it's probably impossible to get the
two to be *exactly* the same.
--
Steven D'Aprano
More information about the Tutor
mailing list