Important questions about __future__
maniandram01 at gmail.com
Thu Jan 3 10:43:44 CET 2013
On Thursday, 3 January 2013 14:57:42 UTC+5:30, Andrew Berg wrote:
> Does 'from __future__ import barry_as_FLUFL' do anything? Despite PEP
> 401, using print as a statement still raises a SyntaxError.
> Where is 'from __future__ import braces' implemented in CPython (it's
> not in __future__.py)?
> CPython 3.3.0 | Windows NT 6.2.9200.16461
barry_as_FLUFL is probably simply a joke future statement (Barry is at the head of Python Development and would probably replace Guido in the future) (Guido is typically only active on python-ideas).
from __future__ import braces is the Future statement (see http://docs.python.org/3/library/__future__.html)
import __future__ simply imports __future__.py as a plain, ordinary module
More information about the Python-list