[Python-ideas] add a single __future__ for py3?
greg.ewing at canterbury.ac.nz
Mon Sep 21 07:15:53 CEST 2015
Chris Angelico wrote:
> On Mon, Sep 21, 2015 at 2:28 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>> from __future__ import *
> Even if it were made to work, though, it'd mean you suddenly and
> unexpectedly get backward-incompatible changes when you run your code
> on a new version.
Properly implemented, it would use the time
machine module to find every feature that will
ever be implemented in Python. So once you had
updated your code to be compatible with all of
them, it would *never* break again!
The neat thing is that it would take just one
use of the time machine to backport this feature,
and it would then bootstrap itself into existence.
More information about the Python-ideas