[Python-talk] A Pythonic chuckle
sconce at in-spec-inc.com
Thu Sep 7 11:45:34 EDT 2006
You may have seen this. If not...
Python's development philosophy includes giving priority to not breaking
existing code. When, for instance, adding generators to the language
required inventing a new keyword ("yield"), a couple of releases were
allocated to allowing time for a transition. The first iteration was
to ALLOW the new keyword, and in a subsequent release it was formally
reserved, and now it's part of the language. During that first iteration
you told Python that you wanted to allow the new keyword by
from __future__ import generators
It still works, of course, although in modern releases of Python it's
A more recent example,
from __future__ import division
provided for rearranging the division operators for truncating vs.
Have you tried this, though?
from __future__ import braces
More information about the Python-talk